class TestPlacesByZip(TestCase):
    def create_app(self):
        app = Flask(__name__)
        app.config.from_object("config")
        db.init_app(app)
        app.db = db
        return app

    def setUp(self):
        self.geocoder = Geocoder()

    def test_places_by_city_with_results(self):
        cities = self.geocoder.places_by_zip("11949")
        print(cities[0])
        assert cities[0].id == 28664

    def test_places_by_city_with_no_results(self):
        cities = self.geocoder.places_by_zip("RETURNS NOTHING")
        assert len(cities) == 0