The watcherclient.tests.unit.utils Module

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

Bases: testtools.testcase.TestCase

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

Bases: object

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

Bases: object

getresponse()[source]
request(method, conn_url, **kwargs)[source]
setresponse(response)[source]
class watcherclient.tests.unit.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.unit.utils.FakeSession(headers, content=None, status_code=None, version=None)[source]

Bases: object

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

Bases: object

iter_content(chunk_size)[source]