def setUp(self): root = CategoryFactory() parent = CategoryFactory(parent=root) CategoryFactory.create_batch(3, **{"parent": parent})
def test_main_menu(self): CategoryFactory.create_batch(size=5) self.assertEqual(len(main_menu()['roots']), 5)
def setUp(self): root = CategoryFactory() parent = CategoryFactory(parent=root) CategoryFactory.create_batch(3, **{"parent": parent})
def test_main_menu(self): CategoryFactory.create_batch(size=5) self.assertEqual(len(main_menu()['roots']), 5)