'Tests setting a valid transport type'

@ddt.data({'params': {'transport_type': 'http', 'server_type_filer': 'filer'}}, {'params': {'transport_type': 'http', 'server_type_filer': 'xyz'}}, {'params': {'transport_type': 'https', 'server_type_filer': 'filer'}}, {'params': {'transport_type': 'https', 'server_type_filer': 'xyz'}})
@ddt.unpack
def test_set_transport_type_valid(self, params):

    self.root._server_type = params['server_type_filer']
    mock_invoke = self.mock_object(self.root, 'set_port')
    self.root.set_transport_type(params['transport_type'])
    expected_call_args = zapi_fakes.FAKE_CALL_ARGS_LIST
    self.assertIn(mock_invoke.call_args, expected_call_args)
