Conditions | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
25 | def test_notifier_factory_method(self): |
||
26 | u = User() |
||
27 | |||
28 | self.app_config.EMAIL_NOTIFICATION_ACTIVATED = True |
||
29 | notifier = NotifierFactory.create(self.app_config, u) |
||
30 | eq_(EmailNotifier, notifier.__class__) |
||
31 | |||
32 | self.app_config.EMAIL_NOTIFICATION_ACTIVATED = False |
||
33 | notifier = NotifierFactory.create(self.app_config, u) |
||
34 | eq_(DummyNotifier, notifier.__class__) |
||
35 | |||
40 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.