#NEWLINE# def test_extra_vars_at_runtime_YAML_JT( self ) : #NEWLINE# #INDENT# 'Establish that if we should be asking for extra variables at\n        runtime, that we do.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# jt_vars_registration ( t , 'spam: eggs\n# comment' ) #NEWLINE# with mock . patch . object ( click , 'edit' ) as edit : #NEWLINE# #INDENT# edit . return_value = '# Nothing.\nfoo: bar' #NEWLINE# self . res . launch ( 1 , no_input = False ) #NEWLINE# self . assertIn ( '# comment' , self . mock_calls [ 0 ] [ 1 ] [ 0 ] ) #NEWLINE# self . assertDictContainsSubset ( { #NEWLINE# #INDENT# 'spam' : 'eggs' , #NEWLINE# #UNINDENT# } , yaml . load ( edit . mock_calls [ 0 ] [ 1 ] [ 0 ] ) )