Testing – Solution [0]

Possible tests examples:

def test_find_perimeter_1():
    """ Tests if the function can handle two positive integer values as input.
    """
    res = find_perimeter(4, 5)
    assert res == 18

def test_find_rectangle_perimeter_zero_width():
    """ Tests if the function can handle width set to 0.
    """
    res = find_perimeter(0, 3)
    assert res == 0