コード例 #1
0
ファイル: test_importer.py プロジェクト: malept/pelican
 def test_decode_wp_content(self):
     """ Check that we can decode a wordpress content string."""
     with open(WORDPRESS_ENCODED_CONTENT_SAMPLE, 'r') as encoded_file:
         encoded_content = encoded_file.read()
         with open(WORDPRESS_DECODED_CONTENT_SAMPLE, 'r') as decoded_file:
             decoded_content = decoded_file.read()
             self.assertEqual(decode_wp_content(encoded_content, br=False), decoded_content)
コード例 #2
0
 def test_decode_wp_content_returns_empty(self):
     """ Check that given an empty string we return an empty string."""
     self.assertEqual(decode_wp_content(""), "")
コード例 #3
0
ファイル: test_importer.py プロジェクト: Starch/pelican
 def test_decode_wp_content_returns_empty(self):
     """ Check that given an empty string we return an empty string."""
     self.assertEqual(decode_wp_content(""), "")