Permalink
Browse files

tests are passing

  • Loading branch information...
1 parent 3fd1f6e commit 437f21e61cd17d89e45935956705f062cbe9abc2 BuzzTroll committed Sep 4, 2010
Showing with 7 additions and 3 deletions.
  1. +5 −3 lantorrent/pylantorrent/request.py
  2. +2 −0 lantorrent/tests/request_test.py
@@ -120,12 +120,14 @@ def main(argv=sys.argv[1:]):
if not o.nonblock:
(rc, message) = wait_until_sent(con, rid)
else:
- print "request id: %s" % (rid)
+ msg = "request id: %s" % (rid)
+ pynimbusauthz.print_msg(o, 0, msg)
if rc == 0:
- print "Success"
+ pynimbusauthz.print_msg(o, 0, "Success")
else:
- print "Failure: %s" % (message)
+ msg = "Failure: %s" % (message)
+ pynimbusauthz.print_msg(o, 0, msg)
return rc
@@ -62,6 +62,8 @@ def get_rid(self, out_file):
f = open(out_file, "r")
lines = f.readlines()
l = len(lines)
+ print "lines %d" % (l)
+ print lines
rid_line = lines[l-2]
ra = rid_line.split(":", 1)
rid = ra[1].strip()

0 comments on commit 437f21e

Please sign in to comment.