summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipalib/test_aci.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-08-12 13:44:11 +0200
committerJan Cholasta <jcholast@redhat.com>2015-09-01 11:42:01 +0200
commit8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e (patch)
treeac6435b79d3e540e907bcc88e3b1c534c2945626 /ipatests/test_ipalib/test_aci.py
parentfb7943dab454f358316160b4baf99075603a162d (diff)
downloadfreeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.tar.gz
freeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.tar.xz
freeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.zip
Use the print function
In Python 3, `print` is no longer a statement. Call it as a function everywhere, and include the future import to remove the statement in Python 2 code as well. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipatests/test_ipalib/test_aci.py')
-rw-r--r--ipatests/test_ipalib/test_aci.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/ipatests/test_ipalib/test_aci.py b/ipatests/test_ipalib/test_aci.py
index 40ba5e88c..794d4e82b 100644
--- a/ipatests/test_ipalib/test_aci.py
+++ b/ipatests/test_ipalib/test_aci.py
@@ -21,13 +21,14 @@
"""
Test the `ipalib.aci` module.
"""
+from __future__ import print_function
from ipalib.aci import ACI
def check_aci_parsing(source, expected):
a = ACI(source)
- print 'ACI was: ', a
- print 'Expected:', expected
+ print('ACI was: ', a)
+ print('Expected:', expected)
assert str(ACI(source)) == expected
def test_aci_parsing_1():
@@ -76,7 +77,7 @@ def make_test_aci():
def test_aci_equality():
a = make_test_aci()
- print a
+ print(a)
b = ACI()
b.name ="foo"
@@ -85,7 +86,7 @@ def test_aci_equality():
b.set_bindrule_operator("=")
b.set_bindrule_expression("\"ldap:///cn=foo,cn=groups,cn=accounts,dc=example,dc=com\"")
b.permissions = ['add','read','write']
- print b
+ print(b)
assert a.isequal(b)
assert a == b
@@ -94,8 +95,8 @@ def test_aci_equality():
def check_aci_inequality(b):
a = make_test_aci()
- print a
- print b
+ print(a)
+ print(b)
assert not a.isequal(b)
assert not a == b