def test_get_camera_model_not_set(): photo = Photo(helper.get_file('no-exif.jpg')) model = photo.get_camera_model() assert model is None, model
def test_get_camera_model(): photo = Photo(helper.get_file('with-location.jpg')) model = photo.get_camera_model() assert model == 'Canon EOS REBEL T2i', model