Exemplo n.º 1
0
 def test_hour_remaining_to_time_should_return_data(self):
     tt = fixtures.time_tracker()
     result = tt.remaining_to_time
     expected = seconds_to_time(milliseconds_to_seconds(tt.remaining))
     self.assertEqual(result, expected)
Exemplo n.º 2
0
 def test_zero_start_to_datetime_should_return_data(self):
     tt = fixtures.time_tracker()
     result = tt.start_to_datetime
     expected = epoch_to_datetime(tt.start)
     self.assertEqual(result, expected)
Exemplo n.º 3
0
 def test_zero_remainig_to_time_should_return_zero(self):
     tt = fixtures.time_tracker()
     tt.remaining = 0
     result = tt.remaining_to_time
     expected = seconds_to_time(0)
     self.assertEqual(result, expected)
Exemplo n.º 4
0
 def test_none_remaining_to_time_should_return_none(self):
     tt = fixtures.time_tracker()
     tt.remaining = None
     result = tt.remaining_to_time
     self.assertIsNone(result)
Exemplo n.º 5
0
 def test_none_elapsed_to_time_should_return_none(self):
     tt = fixtures.time_tracker()
     tt.elapsed = None
     result = tt.elapsed_to_time
     self.assertIsNone(result)
Exemplo n.º 6
0
 def test_none_start_to_datetime_should_return_none(self):
     tt = fixtures.time_tracker()
     tt.start = None
     result = tt.start_to_datetime
     self.assertIsNone(result)