| Total Complexity | 2 |
| 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(self): |
||
| 14 | saruman.tasks.kernel.modprobe.Add().apply(args=('dummy',)).get() |
||
| 15 | rst = saruman.tasks.kernel.modprobe.Check().apply(args=('dummy',)).get() |
||
| 16 | eq_(rst, True) |
||
| 17 | saruman.tasks.kernel.modprobe.Remove().apply(args=('dummy',)).get() |
||
| 18 | rst = saruman.tasks.kernel.modprobe.Check().apply(args=('dummy',)).get() |
||
| 19 | eq_(rst, False) |
||
| 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.