Esempio n. 1
0
 def test_parse_time_empty(self):
     """Check parsing of the empty string."""
     output = _parse_time('')
     self.assertEqual(output, '')
Esempio n. 2
0
 def test_parse_time_none(self):
     """Check parsing of None."""
     output = _parse_time(None)
     self.assertEqual(output, '')
Esempio n. 3
0
 def test_parse_time(self):
     """Ensure that times are parsed correctly into seconds."""
     output = _parse_time('00:04:07')
     self.assertEqual(output, 247)
Esempio n. 4
0
 def test_parse_time_empty(self):
     """Check parsing of the empty string."""
     output = _parse_time('')
     self.assertEqual(output, '')
Esempio n. 5
0
 def test_parse_time_none(self):
     """Check parsing of None."""
     output = _parse_time(None)
     self.assertEqual(output, '')
Esempio n. 6
0
 def test_parse_time(self):
     """Ensure that times are parsed correctly into seconds."""
     output = _parse_time('00:04:07')
     self.assertEqual(output, 247)