diff options
| author | jvoisin | 2015-11-27 12:18:21 +0100 |
|---|---|---|
| committer | jvoisin | 2015-11-27 12:18:21 +0100 |
| commit | d5a896dddeba644776d3d44fff0370c7fac465cf (patch) | |
| tree | 05a6c3509b3d3f8fd1d65523b79458869a75d19c | |
| parent | 0be0ce35e4763537e2e38fd22d0c0446a55028bb (diff) | |
Add some missing docstrings
| -rw-r--r-- | libmat/mutagenstripper.py | 1 | ||||
| -rw-r--r-- | libmat/parser.py | 1 | ||||
| -rw-r--r-- | test/clitest.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/libmat/mutagenstripper.py b/libmat/mutagenstripper.py index 7e4beed..0f9520a 100644 --- a/libmat/mutagenstripper.py +++ b/libmat/mutagenstripper.py | |||
| @@ -12,6 +12,7 @@ class MutagenStripper(parser.GenericParser): | |||
| 12 | self._create_mfile() | 12 | self._create_mfile() |
| 13 | 13 | ||
| 14 | def _create_mfile(self): | 14 | def _create_mfile(self): |
| 15 | """ This method must be overrriden to instanciate the `mfile` attribute.""" | ||
| 15 | raise NotImplementedError | 16 | raise NotImplementedError |
| 16 | 17 | ||
| 17 | def is_clean(self): | 18 | def is_clean(self): |
diff --git a/libmat/parser.py b/libmat/parser.py index 23cad6b..8e10ae9 100644 --- a/libmat/parser.py +++ b/libmat/parser.py | |||
| @@ -54,6 +54,7 @@ class GenericParser(object): | |||
| 54 | return True | 54 | return True |
| 55 | 55 | ||
| 56 | def _is_clean(self, fieldset): | 56 | def _is_clean(self, fieldset): |
| 57 | """ Helper method of the `is_clean` one """ | ||
| 57 | for field in fieldset: | 58 | for field in fieldset: |
| 58 | remove = self._should_remove(field) | 59 | remove = self._should_remove(field) |
| 59 | if remove is True: | 60 | if remove is True: |
diff --git a/test/clitest.py b/test/clitest.py index 8d48624..ec3c19c 100644 --- a/test/clitest.py +++ b/test/clitest.py | |||
| @@ -115,6 +115,7 @@ class TestFileAttributes(unittest.TestCase): | |||
| 115 | 115 | ||
| 116 | 116 | ||
| 117 | class TestUnsupported(test.MATTest): | 117 | class TestUnsupported(test.MATTest): |
| 118 | """ test MAT's behaviour on unsupported files """ | ||
| 118 | def test_abort_unsupported(self): | 119 | def test_abort_unsupported(self): |
| 119 | """ test if the cli aborts on unsupported files | 120 | """ test if the cli aborts on unsupported files |
| 120 | """ | 121 | """ |
