class TestCount(unittest.TestCase): def setUp(self): print('setup') self.obj = Count() def tearDown(self): print('teardown') self.obj = None def test_add(self): print(self.obj.add(10, 20) == 30) def test_sub(self): print(self.obj.sub(10, 2) == 8)
def setUp(self): print('setup') self.obj = Count()