Пример #1
0
 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
 def test_decode_wp_content_returns_empty(self):
     """ Check that given an empty string we return an empty string."""
     self.assertEqual(decode_wp_content(""), "")