summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_netgroup_plugin.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2014-01-31 15:52:35 +0100
committerMartin Kosek <mkosek@redhat.com>2014-02-11 17:21:11 +0100
commit5d65856588c247b984e8b88d9d461b5a35aae4a4 (patch)
tree951724e725aed46aba30d8aef5ecfba141581f7f /ipatests/test_xmlrpc/test_netgroup_plugin.py
parent8ede71fd8404a6e49e564a47b6dc7171d63cc8db (diff)
downloadfreeipa-5d65856588c247b984e8b88d9d461b5a35aae4a4.tar.gz
freeipa-5d65856588c247b984e8b88d9d461b5a35aae4a4.tar.xz
freeipa-5d65856588c247b984e8b88d9d461b5a35aae4a4.zip
DNS tests for classless reverse domains
Ticket: https://fedorahosted.org/freeipa/ticket/4143 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_netgroup_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_netgroup_plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_xmlrpc/test_netgroup_plugin.py b/ipatests/test_xmlrpc/test_netgroup_plugin.py
index da9a809bb..dd3a8b84c 100644
--- a/ipatests/test_xmlrpc/test_netgroup_plugin.py
+++ b/ipatests/test_xmlrpc/test_netgroup_plugin.py
@@ -341,8 +341,8 @@ class test_netgroup(Declarative):
desc='Add invalid host %r to netgroup %r' % (invalidhost, netgroup1),
command=('netgroup_add_member', [netgroup1], dict(host=invalidhost)),
expected=errors.ValidationError(name='host',
- error='only letters, numbers, _, and - are allowed. ' +
- u'DNS label may not start or end with -'),
+ error=u"only letters, numbers, '_', '-' are allowed. " +
+ u"DNS label may not start or end with '-'"),
),
@@ -782,8 +782,8 @@ class test_netgroup(Declarative):
dict(setattr='externalhost=%s' % invalidhost)
),
expected=errors.ValidationError(name='externalhost',
- error='only letters, numbers, _, and - are allowed. ' +
- 'DNS label may not start or end with -'),
+ error=u"only letters, numbers, '_', '-' are allowed. " +
+ u"DNS label may not start or end with '-'"),
),
dict(