#NEWLINE# def test_plain( self , monkeypatch ) : #NEWLINE# #INDENT# code_mod = pretend . stub ( interact = pretend . call_recorder ( ( lambda local : None ) ) ) #NEWLINE# monkeypatch . setitem ( sys . modules , 'code' , self ) #NEWLINE# shell . plain ( three = 'four' ) #NEWLINE# assert ( code_mod . interact . calls == [ pretend . call ( local = { #NEWLINE# #INDENT# 'three' : 'four' , #NEWLINE# #UNINDENT# } ) ] )