#NEWLINE# def test_simple_context( self ) : #NEWLINE# #INDENT# class MyPlugin ( CMSPluginBase ) : #NEWLINE# #INDENT# render_template = 'base.html' #NEWLINE# #UNINDENT# plugin = MyPlugin ( ArticlePluginModel , admin . site ) #NEWLINE# context = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# out_context = plugin . render ( context , 1 , 2 ) #NEWLINE# self . assertEqual ( out_context [ 'instance' ] , 1 ) #NEWLINE# self . assertEqual ( out_context [ 'placeholder' ] , 2 ) #NEWLINE# self . assertIs ( out_context , context )