def test_add(self): ans = add(2,3) expected = 5 self.assertEqual(ans, expected)
def test_add10and1gives11(): """test case""" assert add(10, 1) == 11
def test_addition(self): self.assertEqual(add(2,2), 4)
def test_add2and3gives5(): """test case""" assert add(2, 3) == 5
def test_add(): assert add(1, 4) == 5
def test_add(self): a = 10 b = 20 expected = 30 actual = add(a, b) self.assertEqual(expected, actual)
def test_add() -> None: """Unit test for sum method in main module.""" assert main.add(5, 10) == 15
def test_add(self): self.assertEqual(add(2, 3), 5)