예제 #1
0
	def test_semi_candidateItems(self):
		userID = 'Leopoldo Pires'
		strategy = PreferredItemsNeighborhoodStrategy()
		self.assertEquals(['Just My Luck', 'You, Me and Dupree'],strategy.candidateItems(userID,self.model))
예제 #2
0
	def test_full_candidateItems(self):
		userID = 'Marcel Caraciolo'
		strategy = PreferredItemsNeighborhoodStrategy()
		self.assertEquals([],strategy.candidateItems(userID,self.model))
예제 #3
0
	def test_empty_candidateItems(self):
		userID = 'Maria Gabriela'
		strategy = PreferredItemsNeighborhoodStrategy()
		self.assertEquals([],strategy.candidateItems(userID,self.model))
예제 #4
0
 def test_semi_candidateItems(self):
     userID = 'Leopoldo Pires'
     strategy = PreferredItemsNeighborhoodStrategy()
     self.assertEquals(['Just My Luck', 'You, Me and Dupree'],
                       strategy.candidateItems(userID, self.model))
예제 #5
0
 def test_full_candidateItems(self):
     userID = 'Marcel Caraciolo'
     strategy = PreferredItemsNeighborhoodStrategy()
     self.assertEquals([], strategy.candidateItems(userID, self.model))
예제 #6
0
 def test_empty_candidateItems(self):
     userID = 'Maria Gabriela'
     strategy = PreferredItemsNeighborhoodStrategy()
     self.assertEquals([], strategy.candidateItems(userID, self.model))