summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/identity/domains/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/identity/domains/tests.py')
-rw-r--r--openstack_dashboard/dashboards/identity/domains/tests.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/openstack_dashboard/dashboards/identity/domains/tests.py b/openstack_dashboard/dashboards/identity/domains/tests.py
index 96524ac..79b19c0 100644
--- a/openstack_dashboard/dashboards/identity/domains/tests.py
+++ b/openstack_dashboard/dashboards/identity/domains/tests.py
@@ -39,8 +39,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
39 @test.create_stubs({api.keystone: ('domain_get', 39 @test.create_stubs({api.keystone: ('domain_get',
40 'domain_list',)}) 40 'domain_list',)})
41 def test_index(self): 41 def test_index(self):
42 domain = self.domains.get(id="1")
43 api.keystone.domain_get(IsA(http.HttpRequest), '1').AndReturn(domain)
44 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 42 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
45 43
46 self.mox.ReplayAll() 44 self.mox.ReplayAll()
@@ -59,8 +57,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
59 'domain_list', 57 'domain_list',
60 'keystone_can_edit_domain')}) 58 'keystone_can_edit_domain')})
61 def test_index_with_keystone_can_edit_domain_false(self): 59 def test_index_with_keystone_can_edit_domain_false(self):
62 domain = self.domains.get(id="1")
63 api.keystone.domain_get(IsA(http.HttpRequest), '1').AndReturn(domain)
64 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 60 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
65 api.keystone.keystone_can_edit_domain() \ 61 api.keystone.keystone_can_edit_domain() \
66 .MultipleTimes().AndReturn(False) 62 .MultipleTimes().AndReturn(False)
@@ -83,7 +79,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
83 def test_delete_domain(self): 79 def test_delete_domain(self):
84 domain = self.domains.get(id="2") 80 domain = self.domains.get(id="2")
85 81
86 api.keystone.domain_get(IsA(http.HttpRequest), '2').AndReturn(domain)
87 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 82 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
88 api.keystone.domain_delete(IgnoreArg(), domain.id) 83 api.keystone.domain_delete(IgnoreArg(), domain.id)
89 84
@@ -99,7 +94,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
99 def test_delete_with_enabled_domain(self): 94 def test_delete_with_enabled_domain(self):
100 domain = self.domains.get(id="1") 95 domain = self.domains.get(id="1")
101 96
102 api.keystone.domain_get(IsA(http.HttpRequest), '1').AndReturn(domain)
103 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 97 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
104 98
105 self.mox.ReplayAll() 99 self.mox.ReplayAll()
@@ -116,7 +110,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
116 def test_disable(self): 110 def test_disable(self):
117 domain = self.domains.get(id="1") 111 domain = self.domains.get(id="1")
118 112
119 api.keystone.domain_get(IsA(http.HttpRequest), '1').AndReturn(domain)
120 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 113 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
121 api.keystone.domain_update(IsA(http.HttpRequest), 114 api.keystone.domain_update(IsA(http.HttpRequest),
122 description=domain.description, 115 description=domain.description,
@@ -138,7 +131,6 @@ class DomainsViewTests(test.BaseAdminViewTests):
138 def test_enable(self): 131 def test_enable(self):
139 domain = self.domains.get(id="2") 132 domain = self.domains.get(id="2")
140 133
141 api.keystone.domain_get(IsA(http.HttpRequest), '1').AndReturn(domain)
142 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list()) 134 api.keystone.domain_list(IgnoreArg()).AndReturn(self.domains.list())
143 api.keystone.domain_update(IsA(http.HttpRequest), 135 api.keystone.domain_update(IsA(http.HttpRequest),
144 description=domain.description, 136 description=domain.description,