def test_eval_5(self): ''' Test the netflix_eval() function with movie ID 10 and customer ID 9. ''' netflix_eval_result = netflix_eval(4000, [657811], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 1)
def test_eval_4(self): ''' Test the netflix_eval() function with movie ID 4 and customer ID 6. ''' netflix_eval_result = netflix_eval(4, [6], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 1)
def test_eval_3(self): ''' Test the netflix_eval() function with movie ID 3 and customer ID 5. ''' netflix_eval_result = netflix_eval(1001, [1050889, 239718], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 2)
def test_eval_2(self): ''' Test the netflix_eval() function with movie ID 2 and customer IDs 4, 5 and 6. ''' netflix_eval_result = netflix_eval(10005, [2087887, 1917538, 2520477], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 3)
def test_eval_1(self): ''' Test the netflix_eval() function with movie ID 1 and customer IDs 1, 2 and 3. ''' netflix_eval_result = netflix_eval(40, [1543642, 1575381], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 2)
def test_eval_6(self): ''' Test the netflix_eval() function with movie ID 12 and customer IDs 20 and 30. ''' netflix_eval_result = netflix_eval(4001, [1284991, 1388095], netflix_cache_load()) self.assertEqual(len(netflix_eval_result), 2)