def test_add(self):
    adminurl = reverse('admin:menus_menu_add', args=[])
    self.client.post(adminurl, {'title': 'Menu1'})
    menu = Menu.objects.get(title='Menu1')
    self.assertEqual(len(menu.children.all()), 0)
    return menu
def test_add(self):
    adminurl = reverse('admin:menus_menu_add', args=[])
    self.client.post(adminurl, {'title': 'Menu1'})
    menu = Menu.objects.get(title='Menu1')
    self.assertEqual(len(menu.children.all()), 0)
    return menu