#NEWLINE# def testGetTasksWithoutTags( self ) : #NEWLINE# #INDENT# task1 = self . gtd . addTask ( title = 'First' , tags = [ 'home' , '1 minute' ] , priority = 1 ) #NEWLINE# task2 = self . gtd . addTask ( title = 'Second' , tags = [ 'work' , '1 minute' ] , priority = 5 ) #NEWLINE# task3 = self . gtd . addTask ( title = 'Third' , tags = [ 'work' , 'long' ] , priority = 3 ) #NEWLINE# tasks = self . gtd . getTasks ( without_tags = '1 minute' ) #NEWLINE# self . assertEqual ( 1 , len ( tasks ) ) #NEWLINE# self . assertEqual ( task3 , tasks [ 0 ] ) #NEWLINE# tasks = self . gtd . getTasks ( tags = 'work' , without_tags = 'long' ) #NEWLINE# self . assertEqual ( 1 , len ( tasks ) ) #NEWLINE# self . assertEqual ( task2 , tasks [ 0 ] )