summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhouming-wang <houming.wang@easystack.cn>2016-01-11 05:22:24 -0500
committerVictor Stinner <vstinner@redhat.com>2016-03-08 09:40:15 +0000
commit30bb63a6f5347752e406857c86d5524d0199132f (patch)
treeb83ffc7d7978d0cb060fac56d539d9ce3c62c4c5
parent5376fe2f0e41f0e79daed81f833b82d67d5755e2 (diff)
downloadwsme-30bb63a6f5347752e406857c86d5524d0199132f.tar.gz
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
-rw-r--r--wsme/tests/test_utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/wsme/tests/test_utils.py b/wsme/tests/test_utils.py
index a6165dd..f9464c8 100644
--- a/wsme/tests/test_utils.py
+++ b/wsme/tests/test_utils.py
@@ -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