summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2013-01-26 02:11:37 +0100
committerMarkus Holtermann <info@markusholtermann.eu>2013-01-26 02:11:37 +0100
commite4f38481a629266d4f2b8231b92386d566f1568f (patch)
tree2f560e50f43491ef078522076086c3ad90c41888 /tests
parent8b5266b2999e4a18372c41c718044a44e089c525 (diff)
downloadbvg-grabber-e4f38481a629266d4f2b8231b92386d566f1568f.tar.gz
bvg-grabber-e4f38481a629266d4f2b8231b92386d566f1568f.tar.bz2
bvg-grabber-e4f38481a629266d4f2b8231b92386d566f1568f.zip
the ``bvggrabber.api.Departure`` does not need to have a byte representation of the start
Diffstat (limited to 'tests')
-rw-r--r--tests/test_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index c4cd445..6180ae2 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -185,7 +185,7 @@ class TestDeparture(BaseTestDeparture):
'when_full': "2013-01-02 03:04:45",
'when_hour': "03:04",
'remaining': 0}
- dep1 = Departure(b"From My Station", "To Your Station",
+ dep1 = Departure("From My Station", "To Your Station",
self.since + self.delta1, "A Line", since=self.since)
self.assertEqual(json1, json.loads(dep1.to_json))
str1 = "Start: From My Station, End: To Your Station, when: 03:04, " \
@@ -200,7 +200,7 @@ class TestDeparture(BaseTestDeparture):
'when_full': "2013-01-02 03:05:20",
'when_hour': "03:05",
'remaining': 60}
- dep2 = Departure(b"From My Station", "To Your Station",
+ dep2 = Departure("From My Station", "To Your Station",
self.since + self.delta2, "A Line", since=self.since)
self.assertEqual(json2, json.loads(dep2.to_json))
str2 = "Start: From My Station, End: To Your Station, when: 03:05, " \