PEP8 fixes

This commit is contained in:
Matt Westcott 2015-08-27 17:24:06 +01:00
parent b1ca612965
commit 028632eabe

View file

@ -200,7 +200,7 @@ class TestSnippetDelete(TestCase, WagtailTestUtils):
self.assertEqual(response.status_code, 200)
def test_delete_post(self):
post_data = {'foo': 'bar'} # For some reason, this test doesn't work without a bit of POST data
post_data = {'foo': 'bar'} # For some reason, this test doesn't work without a bit of POST data
response = self.client.post(reverse('wagtailsnippets:delete', args=('tests', 'advert', self.test_snippet.id, )), post_data)
# Should be redirected to explorer page
@ -263,8 +263,6 @@ class TestSnippetChooserPanel(TestCase):
result.target_content_type)
class TestSnippetRegistering(TestCase):
def test_register_function(self):
self.assertIn(RegisterFunction, SNIPPET_MODELS)