#NEWLINE# def test_task_present_existing_task_not_enabled( self ) : #NEWLINE# #INDENT# old_task = { #NEWLINE# #INDENT# 'TICKscript' : 'test' , #NEWLINE# 'Enabled' : False , #NEWLINE# #UNINDENT# } #NEWLINE# ( ret , get_mock , define_mock , enable_mock , _ ) = _present ( task = self ) #NEWLINE# get_mock . assert_called_once_with ( 'testname' ) #NEWLINE# self . assertEqual ( False , define_mock . called ) #NEWLINE# enable_mock . assert_called_once_with ( 'testname' ) #NEWLINE# self . assertNotIn ( 'diff' , ret [ 'changes' ] ) #NEWLINE# self . assertIn ( 'enabled' , ret [ 'changes' ] ) #NEWLINE# self . assertEqual ( True , ret [ 'changes' ] [ 'enabled' ] [ 'new' ] )