

def test_service_provider_enable(self):
    "Enable Service Provider.\n\n        Set Service Provider's ``enabled`` attribute to True.\n        "

    def prepare(self):
        'Prepare fake return objects before the test is executed'
        resources = fakes.FakeResource(None, copy.deepcopy(service_fakes.SERVICE_PROVIDER), loaded=True)
        self.service_providers_mock.update.return_value = resources
    prepare(self)
    arglist = ['--enable', service_fakes.sp_id]
    verifylist = [('service_provider', service_fakes.sp_id), ('enable', True), ('disable', False)]
    parsed_args = self.check_parser(self.cmd, arglist, verifylist)
    (columns, data) = self.cmd.take_action(verifylist)
    self.service_providers_mock.update.assert_called_with(service_fakes.sp_id, enabled=True, description=None, auth_url=None, sp_url=None)
    self.assertEqual(self.columns, columns)
    datalist = (service_fakes.sp_auth_url, service_fakes.sp_description, True, service_fakes.sp_id, service_fakes.service_provider_url)
    self.assertEqual(datalist, data)

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/identity/v3/test_service_provider.py TestServiceProviderSet.test_service_provider_enable/VarMisuse@122/205 `parsed_args`->`verifylist`