Exemplo n.º 1
0
 def test_who(self):
     """
     Test wire.Who protocol.
     """
     t = proto_helpers.StringTransport()
     a = wire.Who()
     a.makeConnection(t)
     self.assertEquals(t.value(), "root\r\n")
Exemplo n.º 2
0
 def testWho(self):
     """
     Test wire.Who protocol.
     """
     t = StringIOWithoutClosing()
     a = wire.Who()
     a.makeConnection(protocol.FileWrapper(t))
     self.failUnlessEqual(t.getvalue(), "root\r\n")