def test__has_global_staff_access(self): u = Mock(is_staff=False) self.assertFalse(access._has_global_staff_access(u)) u = Mock(is_staff=True) self.assertTrue(access._has_global_staff_access(u))