@@ -0,0 +1,1641 @@
+import httpretty%0A%0Afrom bvg_cli import BVG_URL%0Afrom bvg_cli import request_departures, request_station_ids%0A%0Afrom html_dumps import DEPARTURE_HTML, STATION_HTML%0A%0A%0A@httpretty.activate%0Adef test_request_station_server_error():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, status=500)%0A    _, ok = request_station_ids('any station')%0A    assert ok is False%0A%0A%0A@httpretty.activate%0Adef test_request_departures_server_error():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, status=500)%0A    _, ok = request_departures('any id', limit=10)%0A    assert ok is False%0A%0A%0A@httpretty.activate%0Adef test_parameter_station_name():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, status=201)%0A    _, ok = request_station_ids('anystation')%0A    request = httpretty.last_request()%0A    assert b'input=anystation' in request.body%0A%0A%0A@httpretty.activate%0Adef test_station_name():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, body=STATION_HTML)%0A    stations, ok = request_station_ids('Weber')%0A    assert ok is True%0A    assert len(stations) == 8%0A    assert len(stations%5B0%5D) == 2%0A%0A%0A@httpretty.activate%0Adef test_parameter_limit():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, body=DEPARTURE_HTML)%0A    _, ok = request_departures('any id', limit=2)%0A    request = httpretty.last_request()%0A    assert hasattr(request, 'querystring')%0A    assert 'maxJourneys' in request.querystring%0A    assert '2' in request.querystring%5B'maxJourneys'%5D%0A%0A%0A@httpretty.activate%0Adef test_limit():%0A    httpretty.register_uri(httpretty.GET, BVG_URL, body=DEPARTURE_HTML)%0A    departures, ok = request_departures('9120025', limit=2)%0A    assert ok is True%0A    assert len(departures) == 2%0A

Add tests with mocked http responses