'A L{Command} subclass cannot be defined with a C{commandName} that\'s
not a byte string.'

def test_commandNameMustBeAByteString(self):

    error = self.assertRaises(TypeError, type, 'NewCommand', (amp.Command,), {'commandName': u'FOO'})
    self.assertRegex(str(error), "^Command    names    must    be    byte    strings,    got:    u?'FOO'$")
