Esempio n. 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))
Esempio n. 2
0
	def test_full_candidateItems(self):
		userID = 'Marcel Caraciolo'
		strategy = PreferredItemsNeighborhoodStrategy()
		self.assertEquals([],strategy.candidateItems(userID,self.model))
Esempio n. 3
0
	def test_empty_candidateItems(self):
		userID = 'Maria Gabriela'
		strategy = PreferredItemsNeighborhoodStrategy()
		self.assertEquals([],strategy.candidateItems(userID,self.model))
Esempio n. 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))
Esempio n. 5
0
 def test_full_candidateItems(self):
     userID = 'Marcel Caraciolo'
     strategy = PreferredItemsNeighborhoodStrategy()
     self.assertEquals([], strategy.candidateItems(userID, self.model))
Esempio n. 6
0
 def test_empty_candidateItems(self):
     userID = 'Maria Gabriela'
     strategy = PreferredItemsNeighborhoodStrategy()
     self.assertEquals([], strategy.candidateItems(userID, self.model))