#NEWLINE# def testForgetOne( self , tasks , depfile_name ) : #NEWLINE# #INDENT# self . _add_task_deps ( tasks , depfile_name ) #NEWLINE# output = StringIO ( ) #NEWLINE# cmd_forget = CmdFactory ( Forget , outstream = output , dep_file = depfile_name , backend = 'dbm' , task_list = tasks , sel_tasks = [ 't2' , 't1' ] ) #NEWLINE# cmd_forget . _execute ( False ) #NEWLINE# got = output . getvalue ( ) . split ( '\n' ) [ : ( - 1 ) ] #NEWLINE# assert ( [ 'forgetting t2' , 'forgetting t1' ] == got ) #NEWLINE# dep = Dependency ( DbmDB , depfile_name ) #NEWLINE# assert ( None == dep . _get ( 't1' , 'dep' ) ) #NEWLINE# assert ( None == dep . _get ( 't2' , 'dep' ) ) #NEWLINE# assert ( '1' == dep . _get ( 'g1.a' , 'dep' ) )