#NEWLINE# def test_too_few_args( self ) : #NEWLINE# #INDENT# out = StringIO ( ) #NEWLINE# with mock . patch ( 'sys.stdout' , out ) : #NEWLINE# #INDENT# exitcode = form_signature . main ( [ '/path/to/swift-form-signature' , '/v1/a/c/o' , '' , '12' , '34' , '3600' ] ) #NEWLINE# #UNINDENT# self . assertNotEqual ( usage , 0 ) #NEWLINE# usage = 'Syntax: swift-form-signature <path>' #NEWLINE# self . assertTrue ( ( usage in out . getvalue ( ) ) )