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
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
def test_building_list(self): spot_client = Spotseeker() buildings = spot_client.get_building_list("seattle") self.assertEqual(len(buildings), 43)
def test_building_list(self): spot_client = Spotseeker() buildings = spot_client.get_building_list("seattle") self.assertEqual(len(buildings), 43)