@@ -0,0 +1,1392 @@
+# -*- coding: utf-8 -*-%0Afrom pprint import pprint%0Aimport pytest%0Afrom gmaps import Directions%0A%0Aapi = Directions()%0A%0Adef test_simple_directions():%0A    results = api.directions(%22Warsaw, Poland%22, %22Katowice, Poland%22)%0A    assert results%5B0%5D%0A%0Adef test_directions_lat_lon_tuples():%0A    results = api.directions((40.728783, -73.7897503), (40.6497484, -73.97767999999999))%0A    assert results%5B0%5D%0A%0Adef test_directions_lat_lon_dicts():%0A    results = api.directions(%7B%22lat%22: 40.728783, %22lon%22: -73.7897503%7D, %7B%22lat%22: 40.6497484, %22lon%22: -73.97767999999999%7D)%0A    assert results%5B0%5D%0A%0Adef test_directions_lat_lon_google_formated():%0A    results = api.directions(%2240.728783,-73.7897503%22, %2240.6497484,-73.97767999999999%22)%0A    assert results%5B0%5D%0A%0Adef test_directions_lat_lon_some_object():%0A%0A    class LatLon(object):%0A        def __init__(self, lat, lon):%0A            self.lat = lat%0A            self.lon = lon%0A%0A    results = api.directions(LatLon(40.728783,-73.7897503), LatLon(40.6497484,-73.97767999999999))%0A    assert results%5B0%5D%0A%0Adef test_directions_wrong_type():%0A    with pytest.raises(TypeError):%0A        # wrong list size%0A        results = api.directions((40.728783, -73.7897503, 3.434), (40.6497484, -73.97767999999999))%0A    with pytest.raises(TypeError):%0A        # no keys%0A        results = api.directions(%7B%7D, %7B%7D)%0A    with pytest.raises(TypeError):%0A        # unsupported type%0A        results = api.directions(2, 3)

add first directions tests