예제 #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
예제 #2
0
파일: space.py 프로젝트: uw-it-aca/scout
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
예제 #3
0
 def test_building_list(self):
     spot_client = Spotseeker()
     buildings = spot_client.get_building_list("seattle")
     self.assertEqual(len(buildings), 43)
예제 #4
0
 def test_building_list(self):
     spot_client = Spotseeker()
     buildings = spot_client.get_building_list("seattle")
     self.assertEqual(len(buildings), 43)