def test_sub2(self): j = calculator.Count(71, 46) self.assertEqual(j.sub(), 25)
def test_add2(self): j = calculator.Count(41, 76) self.assertEqual(j.add(), 117)
def test_sub(self): j = calculator.Count(2, 3) self.assertEqual(j.sub(), -1)
def test_add(self): j = calculator.Count(2, 3) self.assertEqual(j.add(), 5) # 比较相等