summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auth_tests/test_models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth_tests/test_models.py b/tests/auth_tests/test_models.py
index a3e7a3205b..fd99b970d7 100644
--- a/tests/auth_tests/test_models.py
+++ b/tests/auth_tests/test_models.py
@@ -635,3 +635,7 @@ class PermissionTests(TestCase):
self.assertEqual(
str(p), "Auth_Tests | custom email field | Can view custom email field"
)
+
+ def test_user_perm_str(self):
+ p = Permission.objects.get(codename="view_customemailfield")
+ self.assertEqual(p.user_perm_str, "auth_tests.view_customemailfield")