add tests for roadmaps
This commit is contained in:
parent
142bc04f56
commit
4a6903f2eb
1 changed files with 5 additions and 1 deletions
|
|
@ -23,8 +23,12 @@ from weboob.tools.test import BackendTest
|
||||||
class TransilienTest(BackendTest):
|
class TransilienTest(BackendTest):
|
||||||
BACKEND = 'transilien'
|
BACKEND = 'transilien'
|
||||||
|
|
||||||
def test_transilien(self):
|
def test_departures(self):
|
||||||
stations = list(self.backend.iter_station_search('defense'))
|
stations = list(self.backend.iter_station_search('defense'))
|
||||||
self.assertTrue(len(stations) > 0)
|
self.assertTrue(len(stations) > 0)
|
||||||
|
|
||||||
list(self.backend.iter_station_departures(stations[0].id))
|
list(self.backend.iter_station_departures(stations[0].id))
|
||||||
|
|
||||||
|
def test_roadmap(self):
|
||||||
|
roadmap = list(self.backend.iter_roadmap('Puteaux', u'École Militaire'))
|
||||||
|
self.assertTrue(len(roadmap) > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue