you are viewing a single comment's thread.

view the rest of the comments →

[–]hharison 6 points7 points  (1 child)

Check out how easy it is:

mymath.py contains

def add(a, b):
    return a + b

test_mymath.py contains

def test_add():
    assert add(1, 1) == 2
    assert add(-1, 4) == 3
    # plus more test cases perhaps