Beispiel #1
0
 def test_count_menu_children(self):
     menu_items_sample = [
         {'parent_id': 1},
         {'parent_id': 2},
         {'parent_id': 3},
         {'parent_id': 2},
         {'parent_id': 2},
         {'parent_id': 2},
     ]
     counter = count_menu_children(menu_items_sample, 2)
     self.assertEqual(4, counter)