mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed E127 pep8 warnings.
This commit is contained in:
parent
d599b590eb
commit
6685713869
55 changed files with 362 additions and 338 deletions
|
@ -80,7 +80,7 @@ class BaseStaticFilesTestCase(object):
|
|||
|
||||
def assertFileContains(self, filepath, text):
|
||||
self.assertIn(text, self._get_file(force_text(filepath)),
|
||||
"'%s' not in '%s'" % (text, filepath))
|
||||
"'%s' not in '%s'" % (text, filepath))
|
||||
|
||||
def assertFileNotFound(self, filepath):
|
||||
self.assertRaises(IOError, self._get_file, filepath)
|
||||
|
@ -783,8 +783,7 @@ class TestMiscFinder(TestCase):
|
|||
class TestTemplateTag(StaticFilesTestCase):
|
||||
|
||||
def test_template_tag(self):
|
||||
self.assertStaticRenders("does/not/exist.png",
|
||||
"/static/does/not/exist.png")
|
||||
self.assertStaticRenders("does/not/exist.png", "/static/does/not/exist.png")
|
||||
self.assertStaticRenders("testfile.txt", "/static/testfile.txt")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue