mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
parent
c0c78f1b70
commit
f7969b0920
83 changed files with 419 additions and 429 deletions
|
@ -47,7 +47,7 @@ class TestUtilsHttp(unittest.TestCase):
|
|||
'c=3&a=1&b=2',
|
||||
'c=3&b=2&a=1'
|
||||
]
|
||||
self.assertTrue(result in acceptable_results)
|
||||
self.assertIn(result, acceptable_results)
|
||||
result = http.urlencode({'a': [1, 2]}, doseq=False)
|
||||
self.assertEqual(result, 'a=%5B%271%27%2C+%272%27%5D')
|
||||
result = http.urlencode({'a': [1, 2]}, doseq=True)
|
||||
|
@ -65,7 +65,7 @@ class TestUtilsHttp(unittest.TestCase):
|
|||
'name=Adrian&name=Simon&position=Developer',
|
||||
'position=Developer&name=Adrian&name=Simon'
|
||||
]
|
||||
self.assertTrue(result in acceptable_results)
|
||||
self.assertIn(result, acceptable_results)
|
||||
|
||||
def test_base36(self):
|
||||
# reciprocity works
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue