Update test_importer.py

Pass blank attached files - using webeditor - please squash these commits before merging !
This commit is contained in:
Stuart Axon 2017-10-12 01:37:31 +01:00 committed by GitHub
commit f92d62ab70

View file

@ -225,7 +225,7 @@ class TestWordpressXmlImporter(unittest.TestCase):
def test_decode_wp_content_returns_empty(self):
""" Check that given an empty string we return an empty string."""
self.assertEqual(decode_wp_content(""), "")
self.assertEqual(decode_wp_content("", None), "")
def test_decode_wp_content(self):
""" Check that we can decode a wordpress content string."""
@ -234,7 +234,7 @@ class TestWordpressXmlImporter(unittest.TestCase):
with open(WORDPRESS_DECODED_CONTENT_SAMPLE, 'r') as decoded_file:
decoded_content = decoded_file.read()
self.assertEqual(
decode_wp_content(encoded_content, br=False),
decode_wp_content(encoded_content, None, br=False),
decoded_content)
def test_preserve_verbatim_formatting(self):