summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-02 17:36:17 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-07-02 09:36:17 +0200
commitfbb83fefd43a89d1a802d77dcc3a9c9ac15a5afa (patch)
tree035f7261b2c9af23dbc9db9ed835db6caf42ca2b /tests
parent090ca6512f514556394d4a8d321db7883f03e2a6 (diff)
Fixed typos in comments and docs.
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_views/tests.py2
-rw-r--r--tests/i18n/tests.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 7e6040fe52..9709bcaf88 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -4090,7 +4090,7 @@ class AdminInlineTests(TestCase):
response = self.client.post(collector_url, self.post_data)
self.assertEqual(response.status_code, 302)
self.assertEqual(Widget.objects.count(), 0)
- # But after adding the permisson it can.
+ # But after adding the permission it can.
permissionuser.user_permissions.add(get_perm(Widget, get_permission_codename('add', Widget._meta)))
self.post_data['widget_set-0-name'] = "Widget 1"
collector_url = reverse('admin:admin_views_collector_change', args=(self.collector.pk,))
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 300af388e6..ac813b3439 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -1677,7 +1677,7 @@ class UnprefixedDefaultLanguageTests(SimpleTestCase):
def test_no_redirect_on_404(self):
"""
A request for a nonexistent URL shouldn't cause a redirect to
- /<defaut_language>/<request_url> when prefix_default_language=False and
+ /<default_language>/<request_url> when prefix_default_language=False and
/<default_language>/<request_url> has a URL match (#27402).
"""
# A match for /group1/group2/ must exist for this to act as a