def test_none_perm(self): self.assertEqual( False, perms._allows_perm(Role(), 'NonExistentModel', any, 'allows_reads'))