pylint cleanup.
This commit is contained in:
@@ -18,9 +18,9 @@ class CourseUpdateTest(CourseTestCase):
|
||||
kwargs = {'provided_id': str(provided_id)} if provided_id else None
|
||||
return reverse_course_url('course_info_update_handler', course_key, kwargs=kwargs)
|
||||
|
||||
'''The do all and end all of unit test cases.'''
|
||||
# The do all and end all of unit test cases.
|
||||
def test_course_update(self):
|
||||
'''Go through each interface and ensure it works.'''
|
||||
"""Go through each interface and ensure it works."""
|
||||
def get_response(content, date):
|
||||
"""
|
||||
Helper method for making call to server and returning response.
|
||||
|
||||
@@ -217,6 +217,7 @@ class ImportTestCase(CourseTestCase):
|
||||
"""
|
||||
|
||||
def try_tar(tarpath):
|
||||
""" Attempt to tar an unacceptable file """
|
||||
with open(tarpath) as tar:
|
||||
args = {"name": tarpath, "course-data": [tar]}
|
||||
resp = self.client.post(self.url, args)
|
||||
@@ -307,10 +308,10 @@ class ExportTestCase(CourseTestCase):
|
||||
|
||||
self._verify_export_failure(u'/container/{}'.format(vertical.location))
|
||||
|
||||
def _verify_export_failure(self, expectedText):
|
||||
def _verify_export_failure(self, expected_text):
|
||||
""" Export failure helper method. """
|
||||
resp = self.client.get(self.url, HTTP_ACCEPT='application/x-tgz')
|
||||
self.assertEquals(resp.status_code, 200)
|
||||
self.assertIsNone(resp.get('Content-Disposition'))
|
||||
self.assertContains(resp, 'Unable to create xml for module')
|
||||
self.assertContains(resp, expectedText)
|
||||
self.assertContains(resp, expected_text)
|
||||
|
||||
Reference in New Issue
Block a user