From 30bb63a6f5347752e406857c86d5524d0199132f Mon Sep 17 00:00:00 2001 From: houming-wang Date: Mon, 11 Jan 2016 05:22:24 -0500 Subject: [PATCH] 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 --- wsme/tests/test_utils.py | 4 +--- 1 file changed, 1 insertion(+), 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