diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-01-26 02:15:18 +0100 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-01-26 02:15:18 +0100 |
commit | 8c2de5d4a9802e43ceb7630e933655859aa80fe0 (patch) | |
tree | 17b73412612a08ecab9da8e0d458f5b1aefb8f53 | |
parent | 44dd5d381bf8b0caebb73426066e74ed2ee56c6a (diff) | |
download | bvg-grabber-8c2de5d4a9802e43ceb7630e933655859aa80fe0.tar.gz bvg-grabber-8c2de5d4a9802e43ceb7630e933655859aa80fe0.tar.bz2 bvg-grabber-8c2de5d4a9802e43ceb7630e933655859aa80fe0.zip |
Fix travis#18 ?
-rw-r--r-- | tests/test_api.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 6180ae2..ba2ef71 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -34,13 +34,12 @@ class TestFunctions(unittest.TestCase): fullformat(s), fullformat(e), t)) def test_compute_remaining_error(self): - self.assertRaises(ValueError, compute_remaining, 1357092240, - datetime.datetime(2013, 1, 2, 3, 4, 1)) + self.assertRaises(ValueError, compute_remaining, + 1357092240, datetime.datetime(2013, 1, 2, 3, 4, 1)) self.assertRaises(ValueError, compute_remaining, datetime.datetime(2013, 1, 2, 3, 4, 0), 1357092241) self.assertRaises(ValueError, compute_remaining, - datetime.datetime(2013, 1, 2, 3, 4, 0), - datetime.datetime(2013, 1, 2, 3, 4, 1)) + 1357092240, 1357092241) class TestQueryApi(unittest.TestCase): @@ -64,6 +63,7 @@ class TestDepartureTimestamp(BaseTestDeparture): def setUp(self): super(TestDepartureTimestamp, self).setUp() self.sincets = 1357092240 + self.since = datetime.datetime.fromtimestamp(self.sincets) self.delta1 = self.delta1.total_seconds() self.delta2 = self.delta2.total_seconds() self.delta3 = self.delta3.total_seconds() |