'Verify that L{AMP} objects output their innerProtocol when set.'

def test_innerProtocolInRepr(self):

    otherProto = TestProto(None, 'outgoing    data')
    a = amp.AMP()
    a.innerProtocol = otherProto
    self.assertEqual(repr(a), ('<AMP    inner    <TestProto    #%d>    at    0x%x>' % (otherProto.instanceId, id(a))))
