summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-07-19 16:39:40 -0400
committerMartin Kosek <mkosek@redhat.com>2011-07-20 17:27:42 +0200
commitbcdd149bd1e0c4b33f5c2f4b153b1ead12695883 (patch)
tree51a501287831030446b32553be8559b7a98bac53
parent9821160d893bf35069119339cf9edb15a697afe1 (diff)
downloadfreeipa-bcdd149bd1e0c4b33f5c2f4b153b1ead12695883.tar.gz
freeipa-bcdd149bd1e0c4b33f5c2f4b153b1ead12695883.tar.xz
freeipa-bcdd149bd1e0c4b33f5c2f4b153b1ead12695883.zip
With the external user/group management fixed, correct the unit tests.
The unit tests were incorrectly expecting the removed data back when removing external users.
-rw-r--r--tests/test_xmlrpc/test_sudorule_plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xmlrpc/test_sudorule_plugin.py b/tests/test_xmlrpc/test_sudorule_plugin.py
index c428899c7..a079de738 100644
--- a/tests/test_xmlrpc/test_sudorule_plugin.py
+++ b/tests/test_xmlrpc/test_sudorule_plugin.py
@@ -280,7 +280,7 @@ class test_sudorule(XMLRPC_test):
assert ret['completed'] == 1
failed = ret['failed']
entry = ret['result']
- assert 'externaluser' not in entry
+ assert entry['externaluser'] == ()
def test_a_sudorule_add_runasexternaluser(self):
"""
@@ -306,7 +306,7 @@ class test_sudorule(XMLRPC_test):
assert ret['completed'] == 1
failed = ret['failed']
entry = ret['result']
- assert 'ipasudorunasextuser' not in entry
+ assert entry['ipasudorunasextuser'] == ()
def test_a_sudorule_add_runasexternalgroup(self):
"""
@@ -332,7 +332,7 @@ class test_sudorule(XMLRPC_test):
assert ret['completed'] == 1
failed = ret['failed']
entry = ret['result']
- assert 'ipasudorunasextgroup' not in entry
+ assert entry['ipasudorunasextgroup'] == ()
def test_a_sudorule_add_option(self):
"""