Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
the test is ridiculously wrong...
- Loading branch information
|
@@ -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) |
|
|