Esempio n. 1
0
 def test_parse_error_no_minutes(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000-01-01T12')
Esempio n. 2
0
 def test_parse_error_no_seconds(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000-01-01T12:00')
Esempio n. 3
0
 def test_parse_error_no_months(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000')
Esempio n. 4
0
 def test_parse_error_no_minutes(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000-01-01T12')
Esempio n. 5
0
 def test_parse_error_no_seconds(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000-01-01T12:00')
Esempio n. 6
0
 def test_parse_error_no_months(self):
     with self.assertRaises(ValueError):
         TimeParser.parse('2000')