'Test that non-ascii message of CommandError does not raise any
UnicodeDecodeError in run_from_argv.'

def test_run_from_argv_non_ascii_error(self):

    def raise_command_error(*args, **kwargs):
        raise CommandError(u'Erreur    personnalis\xe9e')
    command = BaseCommand()
    command.execute = raise_command_error
    command.stderr = StringIO()
    with self.assertRaises(SystemExit):
        command.run_from_argv([u'', u''])
