

def test_list_protocols(self):
    arglist = ['--identity-provider', identity_fakes.idp_id]
    verifylist = [('identity_provider', identity_fakes.idp_id)]
    parsed_args = self.check_parser(self.cmd, arglist, verifylist)
    (columns, data) = self.cmd.take_action(parsed_args)
    self.protocols_mock.list.assert_called_with(identity_fakes.idp_id)

dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/identity/v3/test_protocol.py TestProtocolList.test_list_protocols/original