Exemplo n.º 1
0
 def test_one_year(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(31536000), '1 year')
Exemplo n.º 2
0
 def test_complex_time(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(31649051), '1 year 1 day 7 hours 24 minutes 11 seconds')
Exemplo n.º 3
0
 def test_one_day(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(86400), '1 day')
Exemplo n.º 4
0
 def test_more_than_one_hour(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(3725), '1 hour 2 minutes 5 seconds')
Exemplo n.º 5
0
 def test_more_than_one_minute(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(61), '1 minute 1 second')
Exemplo n.º 6
0
 def test_two_second(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(2), '2 seconds')
Exemplo n.º 7
0
 def test_one_second(self):
     self.assertEqual(cr_text.convert_seconds_to_phrase_time(1), '1 second')