'A L{Command} subclass\'s C{response} must have byte string names.'

def test_commandResponseMustBeNamedWithByteStrings(self):

    error = self.assertRaises(TypeError, type, 'NewCommand', (amp.Command,), {'response': [(u'foo', None)]})
    self.assertRegex(str(error), "^Response    names    must    be    byte    strings,    got:    u?'foo'$")
