def test_beacon_get(self): """ Shows a beacon: GET /beacons/{beacon} """ beacons = Beacon() res = beacons.beacon("amplab") print beacons.beaconToString(res) self.assertTrue(len(res.name) > 0)
def test_beacons_list(self): """ List beacons: GET /beacons """ beacons = Beacon() res = beacons.beaconList() for b in res: print beacons.beaconToString(b) self.assertTrue(len(res) > 0) self.assertTrue(len(res[0].name) > 0)