'Pass the given bytes to the protocol\'s C{dataReceived} method and
assert that the given events occur.'

def _deliver(self, data, *expected):

    received = self.protocol.events = []
    self.protocol.dataReceived(data)
    self.assertEqual(received, list(expected))
