test update
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/1b0f5ba6 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/1b0f5ba6 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/1b0f5ba6 Branch: refs/heads/trunk Commit: 1b0f5ba6fed74501196d15efbf8c6cdb37a8853a Parents: f3d8b06 Author: andy <[email protected]> Authored: Wed Jun 21 21:26:43 2017 -0400 Committer: andy <[email protected]> Committed: Wed Jun 21 21:26:43 2017 -0400 ---------------------------------------------------------------------- libcloud/test/container/test_gke.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/1b0f5ba6/libcloud/test/container/test_gke.py ---------------------------------------------------------------------- diff --git a/libcloud/test/container/test_gke.py b/libcloud/test/container/test_gke.py index 0e6e7a6..e909e83 100644 --- a/libcloud/test/container/test_gke.py +++ b/libcloud/test/container/test_gke.py @@ -18,7 +18,7 @@ Tests for Google Container Engine Driver import sys import unittest -import json + from libcloud.utils.py3 import httplib from libcloud.container.drivers.gke import GKEContainerDriver, API_VERSION from libcloud.common.google import (GoogleBaseAuthConnection) @@ -51,8 +51,8 @@ class GKEContainerDriverTestCase(GoogleTestCase, TestCaseMixin): def test_list_images_response(self): config = self.driver.list_clusters(ex_zone="us-central1-a") - assert "clusters" in config - assert config["clusters"][0]["zone"] == "us-central1-a" + assert "zone" in config + assert config.zone == "us-central1-a" def test_server_config(self): config = self.driver.get_server_config()
