tests.site_decorators_tests module#
Tests against a fake Site object.
- class tests.site_decorators_tests.TestMustBe(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,DebugOnlyTestCase
Test cases for the must_be decorator.
- abstract_class = False#
- test_mock_in_test_reset()#
Test that setUp and login work.
- class tests.site_decorators_tests.TestNeedRight(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,DebugOnlyTestCase
Test cases for the must_be decorator.
- abstract_class = False#
- class tests.site_decorators_tests.TestNeedVersion(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,DeprecationTestCase
Test cases for the need_version decorator.
- abstract_class = False#
- deprecated_available_method2()[source]#
Deprecated.
Method which is deprecated first and then old enough.
Method which is to new and then deprecated.
Deprecated.
Method which is deprecated first and then to new.
- test_need_version_fail_with_deprecated()[source]#
Test order of combined version check and deprecation warning.