Example #1
0
 def test_non_staff_user_has_empty_menu(self):
     menu = get_nodes(self.non_staff_user)
     self.assertEqual(menu, [])
Example #2
0
 def test_non_staff_user_has_empty_menu(self):
     menu = get_nodes(UserFactory())
     self.assertEqual(menu, [])
Example #3
0
 def test_staff_user_has_menu(self):
     menu = get_nodes(self.staff_user)
     self.assertTrue(menu)
 def test_non_staff_user_has_empty_menu(self):
     menu = get_nodes(self.non_staff_user)
     self.assertEqual(menu, [])
Example #5
0
 def test_staff_user_has_menu(self):
     menu = get_nodes(UserFactory(is_staff=True))
     self.assertTrue(menu)
Example #6
0
 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)
Example #8
0
 def test_staff_user_has_menu(self):
     menu = get_nodes(UserFactory(is_staff=True))
     self.assertTrue(menu)
Example #9
0
 def test_non_staff_user_has_empty_menu(self):
     menu = get_nodes(self.non_staff_user)
     assert menu == []
Example #10
0
 def test_staff_user_has_menu(self):
     menu = get_nodes(self.staff_user)
     assert menu
Example #11
0
 def test_non_staff_user_has_empty_menu(self):
     menu = get_nodes(self.non_staff_user)
     assert menu == []
Example #12
0
 def test_staff_user_has_menu(self):
     menu = get_nodes(self.staff_user)
     assert menu