Browse Source

add a few comments for the tests..

tags/v0.1.0
John-Mark Gurney 5 years ago
parent
commit
6ec6d41340
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      twistednoise.py

+ 3
- 0
twistednoise.py View File

@@ -192,9 +192,12 @@ class TNServerTest(unittest.TestCase):
# Feed it into the protocol # Feed it into the protocol
self.proto.dataReceived(encmsg) self.proto.dataReceived(encmsg)


# wait to pass it through
d = yield task.deferLater(reactor, .1, bool, 1) d = yield task.deferLater(reactor, .1, bool, 1)


# fetch it out
clientend = self.protos[0] clientend = self.protos[0]
self.assertEqual(clientend.data, ptmsg) self.assertEqual(clientend.data, ptmsg)


# clean up connection
clientend.transport.loseConnection() clientend.transport.loseConnection()

Loading…
Cancel
Save