Beispiel #1
0
 def testLethalWeapon(self):
     ts = [
         {
             'title': 'Lethal Weapon (1987)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Lethal Weapon 3 (1992)" in recommendations))
Beispiel #2
0
 def testArmageddon(self):
     ts = [
         {
             'title': 'Armageddon (1998)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("2012 (2009)" in recommendations))
Beispiel #3
0
 def testToyStory(self):
     ts = [
         {
             'title': 'Toy Story (1995)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue("Toy Story 3 (2010)" in recommendations)
Beispiel #4
0
 def testNolan(self):
     ts = [
         {
             'title': 'Inception (2010)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Dark Knight, The (2008)" in recommendations))
Beispiel #5
0
 def testKunfuPanda(self):
     ts = [
         {
             'title': 'Kung Fu Panda (2008)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue("Toy Story (1995)" in recommendations)
Beispiel #6
0
 def testRoboCop(self):
     ts = [
         {
             'title': 'RoboCop (1987)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("RoboCop 2 (1990)" in recommendations))
Beispiel #7
0
 def testHorrorWithCartoon(self):
     ts = [
         {
             'title': 'Strangers, The (2008)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Toy Story (1995)" in recommendations) == False)
Beispiel #8
0
 def testCartoon(self):
     ts = [
         {
             'title': 'Moana (2016)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Monsters, Inc. (2001)" in recommendations))
Beispiel #9
0
 def testSuperHeroes(self):
     ts = [
         {
             'title': 'Spider-Man (2002)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Iron Man 2 (2010)" in recommendations))
Beispiel #10
0
 def testHorrorComedy(self):
     ts = [
         {
             'title': 'Scary Movie (2000)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("I Sell the Dead (2008)" in recommendations))
Beispiel #11
0
 def testDarkAction(self):
     ts = [
         {
             'title': 'Batman: The Killing Joke (2016)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Punisher: War Zone (2008)" in recommendations))
Beispiel #12
0
 def testDC(self):
     ts = [
         {
             'title': 'Man of Steel (2013)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Batman v Superman: Dawn of Justice (2016)"
                      in recommendations))
Beispiel #13
0
 def testIronMan(self):
     ts = [
         {
             'title': 'Iron Man (2008)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Avengers: Infinity War - Part I (2018)"
                      in recommendations))
Beispiel #14
0
 def testDark(self):
     ts = [
         {
             'title': 'Puppet Master (1989)',
             'rating': 5.0
         },
     ]
     recommendations = recommendForNewUser(ts)
     self.assertTrue(("Black Mirror: White Christmas (2014)"
                      in recommendations))