tests added for inverted lattitude/logitude

This commit is contained in:
zserg 2015-12-25 12:04:36 +03:00 committed by Jaisen Mathai
parent c9d7bc7102
commit d089b05cf0
2 changed files with 12 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -65,12 +65,24 @@ def test_get_coordinate_latitude():
assert coordinate == 37.3667027222, coordinate
def test_get_coordinate_latitude_minus():
photo = Photo(helper.get_file('with-location-inv.jpg'))
coordinate = photo.get_coordinate('latitude')
assert coordinate == -37.3667027222, coordinate
def test_get_coordinate_longitude():
photo = Photo(helper.get_file('with-location.jpg'))
coordinate = photo.get_coordinate('longitude')
assert coordinate == -122.033383611, coordinate
def test_get_coordinate_longitude_plus():
photo = Photo(helper.get_file('with-location-inv.jpg'))
coordinate = photo.get_coordinate('longitude')
assert coordinate == 122.033383611, coordinate
def test_get_coordinates_without_exif():
photo = Photo(helper.get_file('no-exif.jpg'))
latitude = photo.get_coordinate('latitude')