Beispiel #1
0
def test_large():
    c = add(300, 400)
    assert c == -1
Beispiel #2
0
def test_small():
    c = add(3, 4)
    assert c == 7
Beispiel #3
0
 def test_add_works_as_expected(self):
     for a, b, res in self.add_params:
         with self.subTest():
             self.assertEqual(add(a, b), res)
def call_add(context, function, x, y):
    context.result = add(x, y)
 def test_add(self):
     self.assertEqual(add(5, 6), 11, "Should be 11")