Esempio n. 1
0
 def test_org_get(self):
     """
     Shows an organization: GET /organizations/{organization}
     """
     beacons = Beacon()
     res = beacons.organization("agha")
     print beacons.orgToString(res)
     self.assertTrue(len(res.name) > 0)
Esempio n. 2
0
 def test_org_list(self):
     """
     Lists organizations: GET /organizations
     """
     beacons = Beacon()
     res = beacons.organizationList()
     for org in res:
         print beacons.orgToString(org)
     self.assertTrue(len(res) > 0)
     self.assertTrue(len(res[0].name) > 0)