Esempio n. 1
0
def get_building_list(campus, app_type=None):
    spot_client = Spotseeker()
    buildings = []
    try:
        buildings = spot_client.get_building_list(campus, app_type)
    except DataFailureException:
        pass
        # Log the error?
    return buildings
Esempio n. 2
0
def get_building_list(campus, app_type=None):
    spot_client = Spotseeker()
    buildings = []
    try:
        buildings = spot_client.get_building_list(campus, app_type)
    except DataFailureException:
        pass
        # Log the error?
    return buildings
Esempio n. 3
0
 def test_building_list(self):
     spot_client = Spotseeker()
     buildings = spot_client.get_building_list("seattle")
     self.assertEqual(len(buildings), 43)
Esempio n. 4
0
 def test_building_list(self):
     spot_client = Spotseeker()
     buildings = spot_client.get_building_list("seattle")
     self.assertEqual(len(buildings), 43)