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

def test_commandArgumentsMustBeNamedWithByteStrings(self):

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