Permalink
Browse files

Fixing camel case test names.

  • Loading branch information...
1 parent 985ad99 commit e5fbf9087a0ea2e688e7fd351b174c88eba3e5a6 @brylie committed Jun 30, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/admin_custom_urls/tests.py
View
8 tests/admin_custom_urls/tests.py
@@ -25,15 +25,15 @@ def setUp(self):
def tearDown(self):
self.client.logout()
- def testBasicAddGet(self):
+ def test_basic_add_GET(self):
"""
Ensure GET on the add_view works.
"""
response = self.client.get('/admin/admin_custom_urls/action/!add/')
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 @@ def testAddWithGETArgs(self):
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 @@ def testBasicAddPost(self):
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.
"""

0 comments on commit e5fbf90

Please sign in to comment.