The ironicclient.tests.unit.utils Module

The ironicclient.tests.unit.utils Module

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

Bases: testtools.testcase.TestCase

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

Bases: object

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

Bases: object

getresponse()[source]
request(method, conn_url, **kwargs)[source]
setresponse(response)[source]
class ironicclient.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]
ironicclient.tests.unit.utils.mockSession(headers, content=None, status_code=None, version=None)[source]
ironicclient.tests.unit.utils.mockSessionResponse(headers, content=None, status_code=None, version=None)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.