Skip to content
Permalink
Browse files

the test is ridiculously wrong...

  • Loading branch information
ralsina committed May 22, 2015
1 parent f2477e9 commit 161a69e5671ddb67c972ee2a2771df79d3d318e9
Showing with 3 additions and 3 deletions.
  1. +1 −1 nikola/plugins/command/import_wordpress.py
  2. +2 −2 tests/test_command_import_wordpress.py
@@ -335,7 +335,7 @@ def download_additional_image_sizes(self, item, wordpress_namespace, source_path
links[url] = '/' + dst_url
links[url] = '/' + dst_url

code_re = re.compile(r'\[(?:source)?code(?: lang(?:uage)?="(.*?)")?\](.*?)\[/code\]', re.DOTALL)
code_re = re.compile(r'\[(?:source)?code(?: lang(?:uage)?="(.*?)")?\](.*?)\[/code\]', re.DOTALL | re.MULTILINE)

def transform_code(self, content):
# http://en.support.wordpress.com/code/posting-source-code/. There are
@@ -332,12 +332,12 @@ def test_transforming_source_code(self):

replaced_content = """Hello World.
~~~~~~~~~~~~{.Python}
```Python
import sys
print sys.version
~~~~~~~~~~~~
```
"""

self.assertEqual(content, replaced_content)

0 comments on commit 161a69e

Please sign in to comment.
You can’t perform that action at this time.