Horizon TestCase Classes¶
Horizon provides a base test case class which provides several useful pre-prepared attributes for testing Horizon components.
-
class
horizon.test.helpers.
TestCase
(methodName='runTest')[source]¶ Specialized base test case class for Horizon which gives access to numerous additional features:
- The
mox
mocking framework viaself.mox
. - A
RequestFactory
class which supports Django’scontrib.messages
framework viaself.factory
. - A ready-to-go request object via
self.request
.
- The
The OpenStack Dashboard also provides test case classes for greater ease-of-use when testing APIs and OpenStack-specific auth scenarios.