Use unittest's asserts

master
LEdoian 2 years ago
parent 3d6dd8fa43
commit 673a6066bd

@ -118,8 +118,8 @@ class T(unittest.TestCase):
except SystemExit:
pass
output = output.getvalue()
assert len(output) > 0
assert '\n' in output
self.assertGreater(len(output), 0)
self.assertIn('\n', output)
def test_correct_output(self):
"""

Loading…
Cancel
Save