Fixed typos in FakePayload docstring and SimplifiedURLTests test name.

This commit is contained in:
Min ho Kim 2019-06-17 20:38:04 +10:00 committed by Mariusz Felisiak
parent 415e899dc4
commit 6e8303d49b
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class RedirectCycleError(Exception):
class FakePayload:
"""
A wrapper around BytesIO that restricts what can be read since data from
the network can't be seeked and cannot be read outside of its content
the network can't be sought and cannot be read outside of its content
length. This makes sure that views can't do anything under the test client
that wouldn't work in real life.
"""

View File

@ -107,7 +107,7 @@ class SimplifiedURLTests(SimpleTestCase):
self.assertEqual(match.url_name, 'inner-extra')
self.assertEqual(match.kwargs, {'extra': 'something'})
def test_path_inclusion_is_reversable(self):
def test_path_inclusion_is_reversible(self):
url = reverse('inner-extra', kwargs={'extra': 'something'})
self.assertEqual(url, '/included_urls/extra/something/')