Hello!
I have a problem with calling method - assertTrue.
My code:
https://repl.it/join/aidyjhhn-michahanusek
I have a problem with calling method - assertTrue.
My code:
#!/usr/bin/env python3 import unittest class MyTest(unittest.TestCase): @classmethod def setUp(self): cond = True self.assertTrue(self, expr=cond) # its working self.assertTrue(cond) # its not working - TypeError: assertTrue() missing 1 required positional argument: 'expr def test_1(self): pass if __name__ == '__main__': unittest.main(failfast=True)Playground :
https://repl.it/join/aidyjhhn-michahanusek