diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-09-29 14:17:56 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-10-09 12:23:37 -0700 |
commit | 6b85f148961e2d6108266fd5aff75734c7cf4c35 (patch) | |
tree | badc3ac2041b950fb868781bd490b0a43bda615c | |
parent | cfad4a5f89acba4246162acd4906f374aa74b0d7 (diff) |
framework/tests/core_tests.py: add error message to test
Adds a message to test_parse_listfile_tilde.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-rw-r--r-- | framework/tests/core_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/tests/core_tests.py b/framework/tests/core_tests.py index 9be9c57e3..82be599f4 100644 --- a/framework/tests/core_tests.py +++ b/framework/tests/core_tests.py @@ -162,11 +162,13 @@ def test_parse_listfile_tilde(): """ contents = "~/foo\n" + expected = os.path.expandvars("$HOME/foo") with utils.tempfile(contents) as tfile: results = core.parse_listfile(tfile) - nt.ok_(results[0] == os.path.expandvars("$HOME/foo")) + nt.eq_(results[0], expected, + msg='expected: {} but got: {}'.format(expected, results[0])) @_save_core_config |