#NEWLINE# @ patch . object ( Export , 'get_template' ) #NEWLINE# def test_render_adds_processes_to_context( self , fake_get_template ) : #NEWLINE# #INDENT# export = Export ( ) #NEWLINE# ( p1 , p2 ) = ( object ( ) , object ( ) ) #NEWLINE# export . render ( [ p1 , p2 ] , { #NEWLINE# #INDENT# 'app' : 'elephant' , #NEWLINE# #UNINDENT# } ) #NEWLINE# fake_get_template . return_value . render . assert_called_with ( { #NEWLINE# #INDENT# 'app' : 'elephant' , #NEWLINE# 'processes' : [ p1 , p2 ] , #NEWLINE# #UNINDENT# } )