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('')
def _get_action(self): return admin_password_v21.AdminPasswordController().change_password
def setUp(self): super(AdminPasswordPolicyEnforcementV21, self).setUp() self.controller = admin_password_v21.AdminPasswordController() self.req = fakes.HTTPRequest.blank('')