@@ -302,16 +302,16 @@ def test_importing_posts_and_attachments(self):
302
302
303
303
def test_transforming_content (self ):
304
304
"""Applying markup conversions to content."""
305
- transform_sourcecode = mock .MagicMock ()
305
+ transform_code = mock .MagicMock ()
306
306
transform_caption = mock .MagicMock ()
307
307
transform_newlines = mock .MagicMock ()
308
308
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 ):
310
310
with mock .patch ('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_caption' , transform_caption ):
311
311
with mock .patch ('nikola.plugins.command.import_wordpress.CommandImportWordpress.transform_multiple_newlines' , transform_newlines ):
312
312
self .import_command .transform_content ("random content" )
313
313
314
- self .assertTrue (transform_sourcecode .called )
314
+ self .assertTrue (transform_code .called )
315
315
self .assertTrue (transform_caption .called )
316
316
self .assertTrue (transform_newlines .called )
317
317
@@ -325,7 +325,7 @@ def test_transforming_source_code(self):
325
325
print sys.version
326
326
[/sourcecode]"""
327
327
328
- content = self .import_command .transform_sourcecode (content )
328
+ content = self .import_command .transform_code (content )
329
329
330
330
self .assertFalse ('[/sourcecode]' in content )
331
331
self .assertFalse ('[sourcecode language=' in content )
0 commit comments