| Total Complexity | 5 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| 1 | import unittest |
||
| 9 | class KernelModprobeTest(unittest.TestCase): |
||
| 10 | def setUp(self): |
||
| 11 | current_app.conf.CELERY_ALWAYS_EAGER = True |
||
| 12 | |||
| 13 | def test_check(self): |
||
| 14 | rst = saruman.tasks.kernel.modprobe.Check().apply(args=('dummy',)).get() |
||
| 15 | assert isinstance(rst, bool) and rst is not None, "%r doesnt return a boolean or return None" % rst |
||
| 16 | |||
| 17 | def test_add(self): |
||
| 18 | rst = saruman.tasks.kernel.modprobe.Add().apply(args=('dummy',)).get() |
||
| 19 | assert rst is None, "%r doesnt return None" % rst |
||
| 20 |
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.