示例#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
示例#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"]