Example #1
0
	def test_is_popular_with_not_popular(self):
		# should return false when less than 3 likes
		unpopular = Event(likes=1)
		self.assertEqual(unpopular.is_popular(), False)
Example #2
0
	def test_is_popular_with_popular(self):
		# should return True when 3 or more likes
		pop = Event(likes=3)
		self.assertEqual(pop.is_popular(), True)