We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1367ddf + 86e291d commit 8ace63dCopy full SHA for 8ace63d
spongeauth/accounts/tests/test_models.py
@@ -38,10 +38,10 @@ def test_has_perm(self):
38
39
staff = factories.UserFactory.build(is_admin=False, is_staff=True)
40
assert not staff.has_perm('blah.create')
41
- assert staff.has_perm('accounts.change_user')
42
- assert staff.has_perm('accounts.change_avatar')
43
- assert staff.has_module_perms('accounts')
+ assert not staff.has_perm('accounts.change_user')
+ assert not staff.has_perm('accounts.change_avatar')
44
assert not staff.has_module_perms('blah')
+ assert staff.has_module_perms('accounts')
45
46
admin = factories.UserFactory.build(is_admin=True, is_staff=True)
47
assert admin.has_perm('blah.create')
0 commit comments