#NEWLINE# def test_remove_tag( self ) : #NEWLINE# #INDENT# self . original . write ( 'tags: foo\n' ) #NEWLINE# self . original . write ( 'test: test\n' ) #NEWLINE# self . original . write ( 'tags: bar -quux\n' ) #NEWLINE# self . original . write ( 'success: test\n' ) #NEWLINE# self . original . seek ( 0 ) #NEWLINE# result = subunit . tag_stream ( result . original , self . filtered , [ '-bar' ] ) #NEWLINE# self . assertEqual ( [ 'tags: -bar' , 'tags: foo' , 'test: test' , 'tags: -quux' , 'success: test' ] , self . filtered . getvalue ( ) . splitlines ( ) )