コード例 #1
0
def test_that_ratingData_items_have_4_columns():
	assert len(returnRatingData()[0]) == 4
コード例 #2
0
def test_that_data_in_ratingDictionary_is_correct():
	user = int(returnRatingData()[10][0])
	movie = int(returnRatingData()[10][1])
	rating = int(returnRatingData()[10][2])
	assert ratingDictionary[movie][user-1] == rating
コード例 #3
0
def test_that_ratingData_is_a_list():
	assert isinstance(returnRatingData(), list)