Exemplo n.º 1
0
def test_get():
    responses.add(responses.GET,
                  'http://api/v2/capabilities',
                  json=answers.CAPABILITIES_LIST)

    manager = CapabilitiesManager(client)

    assert manager.get() is not None
Exemplo n.º 2
0
def test_get_raw():
    responses.add(responses.GET,
                  'http://api/v2/capabilities',
                  json=answers.CAPABILITIES_LIST)

    manager = CapabilitiesManager(client)

    assert manager.get(return_raw=True) == \
           answers.CAPABILITIES_LIST["capabilities"]
Exemplo n.º 3
0
 def __init__(self, client):
     self.projects = ProjectsManager(client)
     self.quotas = QuotasManager(client)
     self.users = UsersManager(client)
     self.licenses = LicenseManager(client)
     self.roles = RolesManager(client)
     self.floatingips = FloatingIPManager(client)
     self.subnets = SubnetManager(client)
     self.vrrp = VRRPManager(client)
     self.capabilities = CapabilitiesManager(client)
     self.tokens = TokensManager(client)
     self.customization = CustomizationManager(client)