Esempio n. 1
0
    def test_get_delay(self):
        # Delay currently set to ~1/3 of session time.

        # Verify max value is respected
        self.assertEqual(get_delay(25000, 10), 7.5)
        # Verify normal calculation
        self.assertEqual(get_delay(15000, 10, 30), 4.5)
Esempio n. 2
0
 def test_get_delay(self):
     # Verify max value is respected
     self.assertEqual(get_delay(600 * 1000, 10), 10)
     # Verify normal calculation
     self.assertEqual(get_delay(600, 10, 30), 0.02)