def test_addition(): actual = addition(3, 4) exceeded = 7 assert exceeded == actual
def test_addition(self): self.assertEqual(5, addition(2, 3))
def test_char1(): with pytest.raises(TypeError): addition('a', 1)
def test_char2(): with pytest.raises(TypeError): addition(1, 'b')
def test_addition3(): actual = addition(0, 0) exceeded = 0 assert exceeded == actual
def test_addition3(): actual = addition(1, -2) exceeded = -1 assert exceeded == actual
def test_addition2(): actual = addition(-1, 2) exceeded = 1 assert exceeded == actual
from app import addition x, y = eval(input('Enter the value of x,y:')) ans = addition(x, y) print(f'Ans: {ans}')
def test_addition(self): result = app.addition(3,5) self.assertEqual(result, 8)