def testACLValidation(self): api_auth_manager.APIAuthorization( router="DummyAuthManagerTestApiRouter", users=["u1", "u2"], groups=["g1", "g2"]) api_auth_manager.APIAuthorization( router="DummyAuthManagerTestApiRouter")
def GenerateSample(self, number=0): return api_auth_manager.APIAuthorization( router="DummyAuthManagerTestApiRouter", users=["user%s" % number])
def testACLValidationBadGroups(self): with self.assertRaises(api_auth_manager.InvalidAPIAuthorization): api_auth_manager.APIAuthorization( router="DummyAuthManagerTestApiHandler", users=["u1"], groups="g1")
def testACLValidationBadGroups(self): with self.assertRaises(api_auth_manager.InvalidAPIAuthorization): api_auth_manager.APIAuthorization(handler="ApiCallHandler", users=["u1"], groups="g1")
def testACLValidation(self): api_auth_manager.APIAuthorization(handler="ApiCallHandler", users=["u1", "u2"], groups=["g1", "g2"]) api_auth_manager.APIAuthorization(handler="ApiCallHandler")
def GenerateSample(self, number=0): return api_auth_manager.APIAuthorization(handler="ApiCallHandler", users=["user%s" % number])
def testACLValidationBadUsers(self): with self.assertRaises(api_auth_manager.InvalidAPIAuthorization): api_auth_manager.APIAuthorization(renderer="ApiCallRenderer", users="u1", groups=["g1"])