mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
parent
54546cee88
commit
89b9e6e5d6
11 changed files with 169 additions and 169 deletions
|
@ -25,7 +25,7 @@ class AdminCustomUrlsTest(TestCase):
|
|||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def testBasicAddGet(self):
|
||||
def test_basic_add_GET(self):
|
||||
"""
|
||||
Ensure GET on the add_view works.
|
||||
"""
|
||||
|
@ -33,7 +33,7 @@ class AdminCustomUrlsTest(TestCase):
|
|||
self.assertIsInstance(response, TemplateResponse)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
def testAddWithGETArgs(self):
|
||||
def test_add_with_GET_args(self):
|
||||
"""
|
||||
Ensure GET on the add_view plus specifying a field value in the query
|
||||
string works.
|
||||
|
@ -42,7 +42,7 @@ class AdminCustomUrlsTest(TestCase):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, 'value="My Action"')
|
||||
|
||||
def testBasicAddPost(self):
|
||||
def test_basic_add_POST(self):
|
||||
"""
|
||||
Ensure POST on add_view works.
|
||||
"""
|
||||
|
@ -56,7 +56,7 @@ class AdminCustomUrlsTest(TestCase):
|
|||
self.assertContains(response, 'dismissAddAnotherPopup')
|
||||
self.assertContains(response, 'Action added through a popup')
|
||||
|
||||
def testAdminUrlsNoClash(self):
|
||||
def test_admin_URLs_no_clash(self):
|
||||
"""
|
||||
Test that some admin URLs work correctly.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue