[test] Inline _test_available_cubes() method in cwconfig tests
Improves readability.
--- a/cubicweb/test/unittest_cwconfig.py Tue Mar 12 23:45:15 2019 +0100
+++ b/cubicweb/test/unittest_cwconfig.py Wed Mar 13 17:21:27 2019 +0100
@@ -128,13 +128,10 @@
'cubicweb_file', 'cubicweb_forge', 'localperms',
'cubicweb_mycube', 'tag',
]
- self._test_available_cubes(expected_cubes)
+ self.assertEqual(self.config.available_cubes(), expected_cubes)
mock_iter_entry_points.assert_called_once_with(
group='cubicweb.cubes', name=None)
- def _test_available_cubes(self, expected_cubes):
- self.assertEqual(self.config.available_cubes(), expected_cubes)
-
def test_reorder_cubes(self):
# forge depends on email and file and comment
# email depends on file
@@ -218,7 +215,7 @@
# test dependencies
'card', 'file', 'localperms', 'tag',
]))
- self._test_available_cubes(expected_cubes)
+ self.assertEqual(self.config.available_cubes(), expected_cubes)
def test_reorder_cubes_recommends(self):
from cubes.comment import __pkginfo__ as comment_pkginfo