import unittest class MyTest(unittest.TestCase): def test_good(self): pass def test_bad(self): self.assertTrue(False) if __name__ == '__main__': unittest.main()
Standard input is empty
Standard output is empty
F. ====================================================================== FAIL: test_bad (__main__.MyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "./prog.py", line 7, in test_bad AssertionError: False is not true ---------------------------------------------------------------------- Ran 2 tests in 0.000s FAILED (failures=1)