'Verify that attempting to send value longer than 64k will immediately
raise an exception.'

def test_valueTooLong(self):

    (c, s, p) = connectedServerAndClient()
    x = ('H' * (65535 + 1))
    tl = self.assertRaises(amp.TooLong, c.sendHello, x)
    p.flush()
    self.assertFalse(tl.isKey)
    self.assertTrue(tl.isLocal)
    self.assertEqual(tl.keyName, 'hello')
    self.failUnlessIdentical(tl.value, x)
    self.assertIn(str(len(x)), repr(tl))
    self.assertIn('value', repr(tl))
    self.assertIn('hello', repr(tl))
