コード例 #1
0
 def setUp(self):
     super(AdminPasswordTestV21, self).setUp()
     self.stubs.Set(compute_api.API, 'set_admin_password',
                    fake_set_admin_password)
     self.stubs.Set(compute_api.API, 'get', fake_get)
     self.controller = admin_password_v21.AdminPasswordController()
     self.fake_req = fakes.HTTPRequest.blank('')
コード例 #2
0
 def _get_action(self):
     return admin_password_v21.AdminPasswordController().change_password
コード例 #3
0
 def setUp(self):
     super(AdminPasswordPolicyEnforcementV21, self).setUp()
     self.controller = admin_password_v21.AdminPasswordController()
     self.req = fakes.HTTPRequest.blank('')