'After switching to a different protocol, if no extra bytes beyond
the switch box were delivered, an empty string is not passed to the
switched protocol\'s C{dataReceived} method.'

def test_protocolSwitchEmptyBuffer(self):

    a = amp.BinaryBoxProtocol(self)
    a.makeConnection(self)
    otherProto = TestProto(None, '')
    a._switchTo(otherProto)
    self.assertEqual(otherProto.data, [])
