#NEWLINE# def test_serial_code( self ) : #NEWLINE# #INDENT# processor = bugdown . fenced_code . FencedBlockPreprocessor ( None ) #NEWLINE# processor . format_code = ( lambda lang , code : ( ( lang + ':' ) + code ) ) #NEWLINE# processor . placeholder = ( lambda s : ( ( '**' + s . strip ( '\n' ) ) + '**' ) ) #NEWLINE# markdown = [ '``` .py' , 'hello()' , '```' , '' , '``` .py' , 'goodbye()' , '```' , '' , '' ] #NEWLINE# expected = [ '' , '**py:hello()**' , '' , '' , '' , '**py:goodbye()**' , '' , '' , '' ] #NEWLINE# lines = processor . run ( markdown ) #NEWLINE# self . assertEqual ( markdown , expected )