[test] Inline _test_available_cubes() method in cwconfig tests
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 13 Mar 2019 17:21:27 +0100
changeset 12498 1ec5b23b92e7
parent 12496 ad995a9905f9
child 12499 2699e0f3f54a
[test] Inline _test_available_cubes() method in cwconfig tests Improves readability.
cubicweb/test/unittest_cwconfig.py
--- 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