summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_certprofile_plugin.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2016-01-05 13:54:43 +0100
committerJan Cholasta <jcholast@redhat.com>2016-01-20 11:59:21 +0100
commitb2436560dfb4f2d45d3bf4bdfe1b2a05ff98ee38 (patch)
tree4c643c0a04f5fa51965a0ed56d67f70ad1a20062 /ipatests/test_xmlrpc/test_certprofile_plugin.py
parent462f4a5161185e74432cfe492ab959cc15b12711 (diff)
downloadfreeipa-b2436560dfb4f2d45d3bf4bdfe1b2a05ff98ee38.tar.gz
freeipa-b2436560dfb4f2d45d3bf4bdfe1b2a05ff98ee38.tar.xz
freeipa-b2436560dfb4f2d45d3bf4bdfe1b2a05ff98ee38.zip
Alias "unicode" to "str" under Python 3
Follow-up to commit 23507e6124041ed17f39db211e802495e37520e7 The six way of doing this is to replace all occurences of "unicode" with "six.text_type". However, "unicode" is non-ambiguous and (arguably) easier to read. Also, using it makes the patches smaller, which should help with backporting. https://fedorahosted.org/freeipa/ticket/5623 Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_certprofile_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_certprofile_plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_certprofile_plugin.py b/ipatests/test_xmlrpc/test_certprofile_plugin.py
index 66a72de3e..e8459772d 100644
--- a/ipatests/test_xmlrpc/test_certprofile_plugin.py
+++ b/ipatests/test_xmlrpc/test_certprofile_plugin.py
@@ -10,12 +10,15 @@ Test the `ipalib.plugins.certprofile` module.
import os
import pytest
+import six
from ipalib import api, errors
from ipatests.util import prepare_config
from ipatests.test_xmlrpc.xmlrpc_test import XMLRPC_test, raises_exact
from ipatests.test_xmlrpc.tracker.certprofile_plugin import CertprofileTracker
+if six.PY3:
+ unicode = str
IPA_CERT_SUBJ_BASE = (
api.Command.config_show()