summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-03-27 17:42:45 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-03-27 17:42:45 -0400
commit9e7e5953469db24a22710f68dd6c5c337e5c0365 (patch)
treedc517ff6249f655f841c334f8cc65f7cce5350fc /tests
parent5b2e32746600a45af8ce85f645cb3c0d8ae2d084 (diff)
downloadthird_party-cobbler-9e7e5953469db24a22710f68dd6c5c337e5c0365.tar.gz
third_party-cobbler-9e7e5953469db24a22710f68dd6c5c337e5c0365.tar.xz
third_party-cobbler-9e7e5953469db24a22710f68dd6c5c337e5c0365.zip
Fixes to authz_ownership module, tests pass now.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tests.py b/tests/tests.py
index 546c83f..426ddf2 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -111,9 +111,9 @@ class Ownership(BootTest):
profile = self.api.find_profile(name="testprofile0")
system = self.api.find_system(name="drwily.rdu.redhat.com")
repo = self.api.find_repo(name="test_repo")
- self.assertTrue(distro.set_owners("superlab,basement1"))
- self.assertTrue(profile.set_owners("superlab,basement1"))
- self.assertTrue(system.set_owners("superlab,basement1"))
+ self.assertTrue(distro.set_owners(["superlab","basement1"]))
+ self.assertTrue(profile.set_owners(["superlab","basement1"]))
+ self.assertTrue(system.set_owners(["superlab","basement1"]))
self.assertTrue(repo.set_owners([]))
self.api.add_distro(distro)
self.api.add_profile(profile)
@@ -144,8 +144,8 @@ class Ownership(BootTest):
xo = self.api.find_distro("testdistro0")
xn = "testdistro0"
- ro = self.api.find_repo("testrepo0")
- rn = "testrepo0"
+ ro = self.api.find_repo("test_repo")
+ rn = "test_repo"
# ensure admin1 can edit (he's an admin) and do other tasks
# same applies to basement1 who is explicitly added as a user