Skip to content

Commit 02bdaae

Browse files
committedMay 5, 2015
fix some tests
1 parent ee90115 commit 02bdaae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎tests/test_command_import_wordpress.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,16 @@ def test_importing_posts_and_attachments(self):
302302

303303
def test_transforming_content(self):
304304
"""Applying markup conversions to content."""
305-
transform_sourcecode = mock.MagicMock()
305+
transform_code = mock.MagicMock()
306306
transform_caption = mock.MagicMock()
307307
transform_newlines = mock.MagicMock()
308308

309-
with mock.patch('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_sourcecode', transform_sourcecode):
309+
with mock.patch('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_code', transform_code):
310310
with mock.patch('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_caption', transform_caption):
311311
with mock.patch('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_multiple_newlines', transform_newlines):
312312
self.import_command.transform_content("random content")
313313

314-
self.assertTrue(transform_sourcecode.called)
314+
self.assertTrue(transform_code.called)
315315
self.assertTrue(transform_caption.called)
316316
self.assertTrue(transform_newlines.called)
317317

@@ -325,7 +325,7 @@ def test_transforming_source_code(self):
325325
print sys.version
326326
[/sourcecode]"""
327327

328-
content = self.import_command.transform_sourcecode(content)
328+
content = self.import_command.transform_code(content)
329329

330330
self.assertFalse('[/sourcecode]' in content)
331331
self.assertFalse('[sourcecode language=' in content)

0 commit comments

Comments
 (0)
Please sign in to comment.