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