

@patch('twilio.rest.resources.base.make_request')
def test_workflows(self, request):
    resp = create_mock_json('tests/resources/task_router/workflows_list.json')
    request.return_value = resp
    workflows = self.task_router_client.workflows('WS123')
    workflows = workflows.list()
    assert_true((workflows[0].sid is not None))
    uri = 'https://taskrouter.twilio.com/v1/Workspaces/WS123/Workflows'
    request.assert_called_with('GET', uri, headers=ANY, params={
        
    }, auth=AUTH)

dataset/ETHPy150Open twilio/twilio-python/tests/test_client.py RestClientTest.test_workflows/original