From: Aleksey Maksimov Date: Mon, 10 Jun 2013 09:00:39 +0000 (+0900) Subject: Fixed timestamp. X-Git-Tag: v0.2.23~224^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9733230035ae7378c6f409ee86afc2c022862cb;p=tools%2Fpython-jenkinsapi.git Fixed timestamp. 1370038540938 is 2013-05-31 22:15:40. So test fails on line 39. --- diff --git a/jenkinsapi_tests/unittests/test_build.py b/jenkinsapi_tests/unittests/test_build.py index e331068..f219ead 100644 --- a/jenkinsapi_tests/unittests/test_build.py +++ b/jenkinsapi_tests/unittests/test_build.py @@ -23,7 +23,7 @@ class TestTimestamps(unittest.TestCase): 'keepLog': False, 'number': 1, 'result': 'SUCCESS', - 'timestamp': 1370038540938, + 'timestamp': 1370042140000, 'url': 'http://localhost:8080/job/foo/1/'} @mock.patch.object(Build, '_poll') @@ -41,4 +41,4 @@ class TestTimestamps(unittest.TestCase): def testName(self): with self.assertRaises(AttributeError): _ = self.b.id() - self.assertEquals(self.b.name, 'foo #1') \ No newline at end of file + self.assertEquals(self.b.name, 'foo #1')