Ejemplo n.º 1
0
 def test_deep_level_subcat_is_there(self):
     self.assertEqual(
         ct.has_category(self.tree, 'download'),
         True
     )
Ejemplo n.º 2
0
 def test_first_level_subcat_is_there(self):
     self.assertEqual(
         ct.has_category(self.tree, 'cars'),
         True
     )
Ejemplo n.º 3
0
 def test_dummy_is_absent(self):
     self.assertEqual(
         ct.has_category(self.tree, 'dummy'),
         False
     )
Ejemplo n.º 4
0
 def test_deep_level_subcat_is_there(self):
     self.assertEqual(ct.has_category(self.tree, 'download'), True)
Ejemplo n.º 5
0
 def test_first_level_subcat_is_there(self):
     self.assertEqual(ct.has_category(self.tree, 'cars'), True)
Ejemplo n.º 6
0
 def test_dummy_is_absent(self):
     self.assertEqual(ct.has_category(self.tree, 'dummy'), False)