The castellan_ui.test.helpers Module

The castellan_ui.test.helpers Module

class castellan_ui.test.helpers.APITestCase(methodName='runTest')[source]

Bases: castellan_ui.test.helpers.CastellanTestsMixin, openstack_dashboard.test.helpers.APITestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

class castellan_ui.test.helpers.CastellanTestsMixin[source]

Bases: object

mock_object(obj, attr_name, new_attr=None, **kwargs)[source]

Use python mock to mock an object attribute

Mocks the specified objects attribute with the given value. Automatically performs ‘addCleanup’ for the mock.

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.