def setUp(self):
        self.public_agency_1 = Agency(name="Public 1",
                                      city="San Francisco",
                                      state="CA",
                                      country="US",
                                      location=db.GeoPt(
                                          37.7749295, -122.4194155),
                                      date_opened=datetime.fromtimestamp(0))
        self.public_agency_1.put()

        self.public_agency_2 = Agency(name="Public 2",
                                      city="Seattle",
                                      state="WA",
                                      country="US",
                                      location=db.GeoPt(
                                          47.6062095, -122.3320708),
                                      date_opened=datetime.fromtimestamp(0))
        self.public_agency_2.put()

        self.public_agency_3 = Agency(name="Public 3",
                                      city="Kokomo",
                                      state="IN",
                                      country="US",
                                      location=db.GeoPt(
                                          40.486427, -86.1336033),
                                      date_opened=datetime.fromtimestamp(0))
        self.public_agency_3.put()

        self.private_agency_1 = Agency(name="Private 1",
                                       city="Washington",
                                       state="DC",
                                       country="US",
                                       location=db.GeoPt(
                                           38.8951118, -77.0363658))
        self.private_agency_1.put()

        self.private_agency_2 = Agency(name="Private 2",
                                       city="Philadelphia",
                                       state="PA",
                                       country="US",
                                       location=db.GeoPt(
                                           39.952335, -75.163789))
        self.private_agency_2.put()

        self.private_agency_3 = Agency(name="Private 3",
                                       city="Mars",
                                       state="PA",
                                       country="US",
                                       location=db.GeoPt(
                                           40.6958996, -80.0117254))
        self.private_agency_3.put()

        self.app_pub = TransitApp(title="app_pub",
                                  supports_all_public_agencies=True)
        self.app_pub.put()

        self.app_p1 = TransitApp(title="app_p1")
        self.app_p1.add_explicitly_supported_agency(self.private_agency_1)
        self.app_p1.put()

        self.app_p2_p3 = TransitApp(title="app_p2_p3")
        self.app_p2_p3.add_explicitly_supported_agencies(
            [self.private_agency_2, self.private_agency_3])
        self.app_p2_p3.put()

        self.app_pub_p1_p3 = TransitApp(title="app_pub_p1_p3",
                                        supports_all_public_agencies=True)
        self.app_pub_p1_p3.add_explicitly_supported_agencies(
            [self.private_agency_1, self.private_agency_3])
        self.app_pub_p1_p3.put()

        self.app_pub_pub2_pub3_p1_p2 = TransitApp(
            title="app_pub_pub2_pub3_p1_p2", supports_all_public_agencies=True)
        self.app_pub_pub2_pub3_p1_p2.add_explicitly_supported_agencies([
            self.public_agency_2, self.public_agency_3, self.private_agency_1,
            self.private_agency_2
        ])
        self.app_pub_pub2_pub3_p1_p2.put()

        self.philadelphia = CityInfo(name="Philadelpha",
                                     administrative_area="PA",
                                     country_code="US",
                                     latitude=39.952335,
                                     longitude=-75.163789)
        self.narberth = CityInfo(name="Narberth",
                                 administrative_area="PA",
                                 country_code="US",
                                 latitude=40.0084456,
                                 longitude=-75.26046)
        self.berlin = CityInfo(name="Berlin",
                               administrative_area="Berlin",
                               country_code="DE",
                               latitude=52.5234051,
                               longitude=13.4113999)
        self.grants_pass = CityInfo(name="Grants Pass",
                                    administrative_area="OR",
                                    country_code="US",
                                    latitude=42.4390069,
                                    longitude=-123.3283925)
        self.portland = CityInfo(name="Portland",
                                 administrative_area="OR",
                                 country_code="US",
                                 latitude=45.5234515,
                                 longitude=-122.6762071)

        self.app_for_philadelphia = TransitApp(title="app_for_philadelphia")
        self.app_for_philadelphia.put()
        self.app_for_philadelphia.add_explicitly_supported_city_info_immediate(
            self.philadelphia)

        self.app_for_narberth = TransitApp(title="app_for_narberth")
        self.app_for_narberth.put()
        self.app_for_narberth.add_explicitly_supported_city_info_immediate(
            self.narberth)

        self.app_for_entire_world = TransitApp(
            title="app_for_entire_world",
            explicitly_supports_the_entire_world=True)
        self.app_for_entire_world.put()

        self.app_for_us = TransitApp(title="app_for_us")
        self.app_for_us.add_explicitly_supported_country("US")
        self.app_for_us.put()

        self.app_for_de = TransitApp(title="app_for_de")
        self.app_for_de.add_explicitly_supported_country("DE")
        self.app_for_de.put()

        self.app_for_portland = TransitApp(title="app_for_portland")
        self.app_for_portland.put()
        self.app_for_portland.add_explicitly_supported_city_info_immediate(
            self.portland)