def test_get_nodes(self, cluster_id, request_user, requests_mock):
    expected_data = [{'innerIP': '127.0.0.1'}]
    requests_mock.get(ANY, json={'code': 0, 'data': expected_data})
    client = ClusterManagerClient(request_user.token.access_token)
    data = client.get_nodes(cluster_id)
    assert (data == expected_data)
def test_get_nodes(self, cluster_id, request_user, requests_mock):
    expected_data = [{'innerIP': '127.0.0.1'}]
    requests_mock.get(ANY, json={'code': 0, 'data': expected_data})
    client = ClusterManagerClient(request_user.token.access_token)
    data = client.get_nodes(cluster_id)
    assert (data == expected_data)