Skip to content
Snippets Groups Projects
Commit 5843a33e authored by David Verelst's avatar David Verelst
Browse files

assertRaises can not evaluate exception text, out-comment

parent 016fd64c
No related branches found
No related tags found
No related merge requests found
......@@ -32,14 +32,19 @@ class TestCmpTestCases(CompareTestCases):
self.compare_sel(self.ref_path + 'test3.sel', self.test_path + 'test3.sel')
def test_compare_sel_difference(self):
self.assertRaises(AssertionError, " 2 bea1 angle deg shaft_rot angle",
self.compare_sel, self.ref_path + 'test4.sel', self.test_path + 'test4.sel')
self.assertRaises(AssertionError,# " 2 bea1 angle deg shaft_rot angle",
self.compare_sel, self.ref_path + 'test4.sel',
self.test_path + 'test4.sel')
def test_compare_contents_dat(self):
self.compare_dat_contents(self.ref_path + 'test1.dat', self.test_path + 'test1.dat')
def test_compare_dat_contents_difference(self):
self.assertRaises(AssertionError, " 2.00000E-02", self.compare_dat_contents, self.ref_path + 'test3.dat', self.test_path + 'test3.dat')
# FIXME: can we have something similar in PY2 that checks the error
# text as well?
self.assertRaises(AssertionError,# " 2.00000E-02",
self.compare_dat_contents, self.ref_path + 'test3.dat',
self.test_path + 'test3.dat')
#def test_compare_plot_difference(self):
# self.assertRaises(AssertionError, "Difference in the the values of:\n1 Time", self.compare_dat_plot, self.ref_path + 'test3', self.test_path + 'test3')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment