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")
def testWho(self): """ Test wire.Who protocol. """ t = StringIOWithoutClosing() a = wire.Who() a.makeConnection(protocol.FileWrapper(t)) self.failUnlessEqual(t.getvalue(), "root\r\n")