Example #1
0
 def test_count_all(self):
     """
     Validate that we have the correct number of messages.
     Because are testing with settings of 3 users,
     we should see a total of 1500 messages for just one day
     """
     self.assertEqual(jotd.msg_count(), 1500)
Example #2
0
 def test_count_excessive(self):
     """
     Validate that we will have the correct number of messages
     after 5 days.
     Because are testing with settings of 3 users,
     we should see a total of 15 messages over 5 days.
     """
     self.assertEqual(jotd.msg_count(1000), "Days requested exceeds days in table (500)")
Example #3
0
 def test_count_500days(self):
     """
     Validate that we will have the correct number of messages
     after 5 days.
     Because are testing with settings of 3 users,
     we should see a total of 15 messages over 5 days.
     """
     self.assertEqual(jotd.msg_count(500), 1500)
Example #4
0
 def test_oneday_msg_count(self):
     """
     Because we tested with settings of 3 users and 1 day
     we should see a total of 3 messages (one message per user for 1 day)
     """
     self.assertEqual(jotd.msg_count(self.temp_jotd_emails_table), 1500)
Example #5
0
 def test_one_day_count(self):
     """
     Because we tested with settings of 3 users,
     we should see a total of 3 messages for just one day
     """
     self.assertEqual(jotd.msg_count(), 3)
Example #6
0
 def test_full_count(self):
     """
     Because we tested with settings of 3 users and 500 days
     we should see a total of 1500 messages
     """
     self.assertEqual(jotd.msg_count(), 1500)
Example #7
0
 def test_one_day_count(self):
     """
     Because we tested with settings of 3 users,
     we should see a total of 3 messages for just one day
     """
     self.assertEqual(jotd.msg_count(), 3)
Example #8
0
 def test_full_count(self):
     """
     Because we tested with settings of 3 users and 500 days
     we should see a total of 1500 messages
     """
     self.assertEqual(jotd.msg_count(), 1500)
Example #9
0
 def test_oneday_msg_count(self):
     """
     Because we tested with settings of 3 users and 1 day
     we should see a total of 3 messages (one message per user for 1 day)
     """
     self.assertEqual(jotd.msg_count(self.temp_jotd_emails_table), 1500)