The watcherclient.tests.utils Module

class watcherclient.tests.utils.BaseTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
class watcherclient.tests.utils.FakeAPI(responses)[source]

Bases: object

json_request(*args, **kwargs)[source]
raw_request(*args, **kwargs)[source]
class watcherclient.tests.utils.FakeConnection(response=None)[source]

Bases: object

getresponse()[source]
request(method, conn_url, **kwargs)[source]
setresponse(response)[source]
class watcherclient.tests.utils.FakeKeystone(auth_token)[source]

Bases: object

service_catalog = <watcherclient.tests.utils.FakeServiceCatalog object at 0x7f5c3f52b690>
timestamp = datetime.datetime(2016, 11, 6, 18, 56, 44, 605835)
class watcherclient.tests.utils.FakeResponse(headers, body=None, version=None, status=None, reason=None)[source]

Bases: object

getheader(key, default)[source]
getheaders()[source]
read(amt)[source]
class watcherclient.tests.utils.FakeServiceCatalog[source]

Bases: object

url_for(endpoint_type, service_type, attr=None, filter_value=None)[source]
class watcherclient.tests.utils.FakeSession(headers, content=None, status_code=None)[source]

Bases: object

request(url, method, **kwargs)[source]
class watcherclient.tests.utils.FakeSessionResponse(headers, content=None, status_code=None)[source]

Bases: object

Previous topic

The watcherclient.tests.test_utils Module

Next topic

The watcherclient.tests.v1.base Module

Project Source

This Page