fix zerigo tests
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d679c372 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d679c372 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d679c372 Branch: refs/heads/trunk Commit: d679c372f098e94b79c8f1e167c3c17a29d07d4e Parents: 2beccc8 Author: Anthony Shaw <anthonys...@apache.org> Authored: Tue Apr 11 11:57:38 2017 +1000 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Tue Apr 11 11:57:38 2017 +1000 ---------------------------------------------------------------------- libcloud/test/dns/test_zerigo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/d679c372/libcloud/test/dns/test_zerigo.py ---------------------------------------------------------------------- diff --git a/libcloud/test/dns/test_zerigo.py b/libcloud/test/dns/test_zerigo.py index ec4141f..37c0326 100644 --- a/libcloud/test/dns/test_zerigo.py +++ b/libcloud/test/dns/test_zerigo.py @@ -270,7 +270,7 @@ class ZerigoMockHttp(MockHttp): def _api_1_1_zones_xml(self, method, url, body, headers): body = self.fixtures.load('list_zones.xml') - return (httplib.OK, body, {'x-query-count': 1}, + return (httplib.OK, body, {'x-query-count': '1'}, httplib.responses[httplib.OK]) def _api_1_1_zones_xml_NO_RESULTS(self, method, url, body, headers): @@ -279,13 +279,13 @@ class ZerigoMockHttp(MockHttp): def _api_1_1_zones_12345678_hosts_xml(self, method, url, body, headers): body = self.fixtures.load('list_records.xml') - return (httplib.OK, body, {'x-query-count': 1}, + return (httplib.OK, body, {'x-query-count': '1'}, httplib.responses[httplib.OK]) def _api_1_1_zones_12345678_hosts_xml_NO_RESULTS(self, method, url, body, headers): body = self.fixtures.load('list_records_no_results.xml') - return (httplib.OK, body, {'x-query-count': 0}, + return (httplib.OK, body, {'x-query-count': '0'}, httplib.responses[httplib.OK]) def _api_1_1_zones_12345678_hosts_xml_ZONE_DOES_NOT_EXIST(self, method,