Fix jenkins failure
Fix the failed test case Traceback (most recent call last): File "/opt/stack/wsme/wsme/tests/test_utils.py", line 78, in test_parse_isodatetime self.assertRaises(ValueError, utils.parse_isodatetime, s) AssertionError: ValueError not raised Change-Id: I6c36f8b0340cd7b4c6f35e7c7c5886598e2c5f0c Closes-Bug: #1532734
This commit is contained in:
parent
5376fe2f0e
commit
30bb63a6f5
@ -63,14 +63,12 @@ class TestUtils(unittest.TestCase):
|
||||
pytz.FixedOffset(-1439))),
|
||||
]
|
||||
ill_formatted_datetimes = [
|
||||
'24-12-2004',
|
||||
'24-32-2004',
|
||||
'1856-07-10+33:00'
|
||||
]
|
||||
out_of_range_datetimes = [
|
||||
'2008-02-12T32:12:00',
|
||||
'2012-13-12T00:54:60',
|
||||
'1856-07-10T01:02:03-24:00',
|
||||
'1856-07-10T01:02:03+24:00',
|
||||
]
|
||||
for s, t in good_datetimes:
|
||||
assert utils.parse_isodatetime(s) == t
|
||||
|
Loading…
x
Reference in New Issue
Block a user