improve code style consistency

This commit is contained in:
Changaco
2017-01-15 13:59:06 +01:00
parent e0988299fa
commit 811ff1e7b6

View File

@@ -119,8 +119,8 @@ class SaferHtmlRendererTest(TestCase):
def test_link_rewriting(self):
for url in ('http://a', 'https://b'):
actual = render_rewrite("['foo](%s \"bar'\")" % url)
expected = '<p><a href="%s" title="bar&#39;">&#39;foo</a></p>\n'
ok(actual).diff(expected % rewrite_url(url))
expected = '<p><a href="%s" title="bar&#39;">&#39;foo</a></p>\n' % rewrite_url(url)
ok(actual).diff(expected)
def test_image_src_rewriting(self):
actual = render_rewrite('![](http:"foo")')