This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.tests.db.fakes Module

Stubouts, mocks and fixtures for the test suite

class nova.tests.db.fakes.FakeModel(values)

Bases: object

Stubs out for model.

nova.tests.db.fakes.stub_out(stubs, funcs)

Set the stubs in mapping in the db api.

nova.tests.db.fakes.stub_out_db_instance_api(stubs, injected=True)

Stubs out the db API for creating Instances.

nova.tests.db.fakes.stub_out_db_network_api(stubs)