Use unittest's asserts

master
LEdoian 2 years ago
parent 3d6dd8fa43
commit 673a6066bd

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

Loading…
Cancel
Save