Beispiel #1
0
 def test_invalid_unit(self):
     with AssertRaisesException(ValueError("Invalid unit 'z'")):
         whisper.getUnitString('z')
Beispiel #2
0
 def test_invalid_unit(self):
     with AssertRaisesException(ValueError("Invalid unit 'z'")):
         whisper.getUnitString('z')
Beispiel #3
0
 def test_function(self):
     for unit in ('seconds', 'minutes', 'hours', 'days', 'weeks'):
         value = whisper.getUnitString(unit[0])
         self.assertEqual(value, unit)
Beispiel #4
0
 def test_function(self):
     for unit in ('seconds', 'minutes', 'hours', 'days', 'weeks'):
         value = whisper.getUnitString(unit[0])
         self.assertEqual(value, unit)