

def test_discard(self):
    '\n        Test wire.Discard protocol.\n        '
    t = proto_helpers.StringTransport()
    a = wire.Discard()
    a.makeConnection(t)
    a.dataReceived('hello')
    a.dataReceived('world')
    a.dataReceived('how')
    a.dataReceived('are')
    a.dataReceived('you')
    self.assertEqual(t.value(), '')

dataset/ETHPy150Open twisted/twisted/twisted/test/test_protocols.py WireTests.test_discard/original