Commit faa4cc45 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3095] Assert that the traceback file was generated first

parent 4cfee008
......@@ -80,6 +80,7 @@ class TracebackHandlerTest(unittest.TestCase):
def fatal(self, message, ename, exception, filename):
obj.assertTrue(isinstance(exception, Exception))
obj.assertEqual('Exception', ename)
obj.assertTrue(os.path.isfile(filename))
with open(filename) as f:
text = f.read()
obj.assertTrue(text.startswith('Traceback'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment