Exemple #1
0
 def test_utils_cut_levels(self):
     tree_nodes, flat_nodes = self._get_nodes()
     self.assertEqual(cut_levels(tree_nodes, 1), [flat_nodes[1]])
Exemple #2
0
 def test_06_utils_cut_levels(self):
     tree_nodes, flat_nodes = self._get_nodes()
     self.assertEqual(cut_levels(tree_nodes, 1), [flat_nodes[1]])
Exemple #3
0
 def test_25_utils_cut_levels(self):
     with SettingsOverride(CMS_MODERATOR=False):
         tree_nodes, flat_nodes = self._get_nodes()
         self.assertEqual(cut_levels(tree_nodes, 1), [flat_nodes[1]])