Skip to content

Commit

Permalink
add basic cli test to cover headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrbriggs committed Jan 25, 2016
1 parent b206a88 commit eab730d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions stomp/test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ def testsendfile(self):
teststdout.expect('Shutting down, please wait')
cli.onecmd('quit')

def testsendfileheaders(self):
f = create_test_file()

teststdin = TestStdin()
teststdout = TestStdout(self)
teststdout.expect('CONNECTED')

cli = StompCLI(host, port, username, password, '1.0', stdin=teststdin, stdout=teststdout)

time.sleep(3)

cli.onecmd('sendfile /queue/testsendfile %s { "custom" : "header" }' % f.name)

time.sleep(3)

teststdout.expect('Shutting down, please wait')
cli.onecmd('quit')

def testabort(self):
teststdin = TestStdin()
teststdout = TestStdout(self)
Expand Down

0 comments on commit eab730d

Please sign in to comment.