Horizon provides a base test case class which provides several useful pre-prepared attributes for testing Horizon components.
horizon.test.helpers.TestCase(methodName='runTest')[source]¶Base test case class for Horizon with numerous additional features.
mox mocking framework via self.mox.RequestFactory class which supports Django’s contrib.messages
framework via self.factory.self.request.The OpenStack Dashboard also provides test case classes for greater ease-of-use when testing APIs and OpenStack-specific auth scenarios.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.