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:
houming-wang 2016-01-11 05:22:24 -05:00 committed by Victor Stinner
parent 5376fe2f0e
commit 30bb63a6f5
1 changed files with 1 additions and 3 deletions

View File

@ -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