Exemplo n.º 1
0
 def test_10_qotd_3ok(self):
     player = self._get_player()
     for i in range(3):
         timestamp = datetime.now() + timedelta(days=-i)
         a = Activity.objects.create(
             timestamp=timestamp, user_from=player, user_to=player,
             action='qotd-correct', message_string=str(i), public=True)
     self.assertEqual(consecutive_qotd_correct(player), 3)
Exemplo n.º 2
0
 def test_10_qotd_3ok(self):
     player = self._get_player()
     for i in range(3):
         timestamp = datetime.now() + timedelta(days=-i)
         a = Activity.objects.create(timestamp=timestamp,
                                     user_from=player,
                                     user_to=player,
                                     action='qotd-correct',
                                     message_string=str(i),
                                     public=True)
     self.assertEqual(consecutive_qotd_correct(player), 3)