def test_votes(self):
     self.install()
     self.add_content()
     self.age_content()
     Vote.objects.create(user=self.user,
                         suggestion=Suggestion.objects.all()[0],
                         value=1)
     daily_addons()
     self.assert_count(suggestions=1)
Exemple #2
0
 def test_votes(self):
     self.install()
     self.add_content()
     self.age_content()
     Vote.objects.create(
         user=self.user,
         suggestion=Suggestion.objects.all()[0]
     )
     daily_addons()
     self.assert_count(suggestions=1)
 def test_old(self):
     self.install()
     self.add_content()
     self.age_content()
     daily_addons()
     self.assert_count()
 def test_current(self):
     self.install()
     self.add_content()
     daily_addons()
     self.assert_count(1, 1)
 def test_noop(self):
     self.install()
     daily_addons()
     self.assert_count()
Exemple #6
0
 def test_old(self):
     self.install()
     self.add_content()
     self.age_content()
     daily_addons()
     self.assert_count()
Exemple #7
0
 def test_current(self):
     self.install()
     self.add_content()
     daily_addons()
     self.assert_count(1, 1)
Exemple #8
0
 def test_noop(self):
     self.install()
     daily_addons()
     self.assert_count()