def test_parse_error_no_minutes(self): with self.assertRaises(ValueError): TimeParser.parse('2000-01-01T12')
def test_parse_error_no_seconds(self): with self.assertRaises(ValueError): TimeParser.parse('2000-01-01T12:00')
def test_parse_error_no_months(self): with self.assertRaises(ValueError): TimeParser.parse('2000')