certbot/certbot-apache/certbot_apache/tests
Chris Julian 2bfc92e58d #4071 Mixin to prevent setting return_value after initializing certain Mock objects (#4963)
* Addressing #4071 Wrote an ImmutableReturnMixin to prevent developers overriding return_value in certain Mock objects

* Language

* Loosening the assumption that underlying _mock objects need to be Immutable-like simplifies implementation

* Addressing #4071

* Ensure side_effects and return_values are pushed down to the underlying _mock in FreezableMocks. And IDisplay mocks are no longer frozen in _create_get_utility_mock()

* Edit a handful of tests to not override the mock_get_utility return_value

* Brief explainer of FreezableMock.__setattr__

* Incorporating PR feedback and some compatibility

* FreezableMock __getattr__ needs a shortcut in case of return_value or side_effect

* Changing return_value only forbidden if set before freezing

* Remove unnecessary else block

* Expanded doc strings

* Bring a couple new tests in line with patch_get_utility() norms
2017-08-30 09:52:45 -07:00
..
apache-conf-files Spelling (#4101) 2017-01-26 16:21:54 -08:00
testdata Add support for multivhosts in Apache 2017-05-02 15:56:55 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-apache 2016-04-13 16:36:53 -07:00
augeas_configurator_test.py Parallalelise nosetests from tox (#3836) 2016-12-06 20:39:16 -08:00
complex_parsing_test.py s/letsencrypt/certbot letsencrypt-apache 2016-04-13 16:30:57 -07:00
configurator_test.py #4071 Mixin to prevent setting return_value after initializing certain Mock objects (#4963) 2017-08-30 09:52:45 -07:00
constants_test.py Fix Apache constants tests (#3630) 2016-10-13 13:54:22 -07:00
display_ops_test.py Low-impact cleanup of IDisplay (#4818) 2017-06-15 17:14:38 -07:00
obj_test.py Test coverage & fix 2016-06-25 12:06:43 -07:00
parser_test.py Spelling (#4101) 2017-01-26 16:21:54 -08:00
tls_sni_01_test.py Fix certbot-apache tests on Python 3 (#4172) 2017-02-24 18:21:21 -08:00
util.py Refactor nginx file update mechanism in preparation for working with apache plugin (#4720) 2017-06-01 09:04:48 -07:00