def test_non_staff_user_has_empty_menu(self): menu = get_nodes(self.non_staff_user) self.assertEqual(menu, [])
def test_non_staff_user_has_empty_menu(self): menu = get_nodes(UserFactory()) self.assertEqual(menu, [])
def test_staff_user_has_menu(self): menu = get_nodes(self.staff_user) self.assertTrue(menu)
def test_staff_user_has_menu(self): menu = get_nodes(UserFactory(is_staff=True)) self.assertTrue(menu)
def test_non_staff_user_has_empty_menu(self): menu = get_nodes(self.non_staff_user) assert menu == []
def test_staff_user_has_menu(self): menu = get_nodes(self.staff_user) assert menu