def test_listofsquares_six(): assert list_of_squares.list_of_squares(6) == { 1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36 }
def test_list_of_squares_2(): assert list_of_squares.list_of_squares(2) == {1: 1, 2: 4}
def test_list_of_squares_1(): assert list_of_squares.list_of_squares(0) == {}
def test_list_of_squares(): d = {1: 1, 2: 4, 3: 9, 4: 16, 5: 25} assert list_of_squares.list_of_squares(5) == d
def test_list(): assert list_of_squares.list_of_squares(1) == {1: 1}
def test_list_of_squares(): assert list_of_squares.list_of_squares(3) == {1:1, 2:4, 3:9}
def test_int(): assert type(list_of_squares.list_of_squares(5)) is dict
def test_square(): for i in range(1, 21): assert list_of_squares.list_of_squares(i)[i] == i * i