コード例 #1
0
 def test_default_delay_is_seconds(self):
     payload = _to_delay(10)
     self.assertEqual(payload, {"timeUnit": "SECONDS", "value": 10})
コード例 #2
0
 def test_days(self):
     payload = _to_delay(days(10))
     self.assertEqual(payload, {"timeUnit": "DAYS", "value": 10})
コード例 #3
0
 def test_hours(self):
     payload = _to_delay(hours(10))
     self.assertEqual(payload, {"timeUnit": "HOURS", "value": 10})
コード例 #4
0
 def test_minutes(self):
     payload = _to_delay(minutes(10))
     self.assertEqual(payload, {"timeUnit": "MINUTES", "value": 10})
コード例 #5
0
 def test_nanoseconds(self):
     payload = _to_delay(nanoseconds(10))
     self.assertEqual(payload, {"timeUnit": "NANOSECONDS", "value": 10})
コード例 #6
0
 def test_microseconds(self):
     payload = _to_delay(microseconds(10))
     self.assertEqual(payload, {"timeUnit": "MICROSECONDS", "value": 10})