Exemplo n.º 1
0
 def test_sub(self):
     operation = Operation(4, 2)
     result = operation.sub()
     self.assertEqual(result, 2)
Exemplo n.º 2
0
 def test_assertion_2(self):
     operation = Operation(3, 4)
     self.assertIsInstance(operation, Operation)
Exemplo n.º 3
0
 def test_add(self):
     """test add method of Operation class"""
     operation = Operation(3, 4)
     result = operation.add()
     self.assertEqual(result, 7)
Exemplo n.º 4
0
 def test_add_1(self):
     operation = Operation(10, 3)
     result = operation.add()
     self.assertNotEqual(result, 12)
Exemplo n.º 5
0
 def test_add_1(self):
     operation = Operation(4, 4)
     result = operation.add()
     self.assertEqual(result, 8)