#NEWLINE# def test_stdout_default( runner ) : #NEWLINE# #INDENT# @ click . command ( ) #NEWLINE# @ click . argument ( 'output' , type = click . File ( 'w' ) , default = '-' ) #NEWLINE# def inout( output ) : #NEWLINE# #INDENT# output . write ( 'Foo bar baz\n' ) #NEWLINE# output . flush ( ) #NEWLINE# #UNINDENT# result = runner . invoke ( inout , [ ] ) #NEWLINE# assert ( not result . exception ) #NEWLINE# assert ( result . output == 'Foo bar baz\n' )