libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [06/20] libcloud git commit: remove unused http methods in digitalocean dns tests
Date Fri, 05 May 2017 11:46:25 GMT
remove unused http methods in digitalocean dns tests


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4bea84ec
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4bea84ec
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4bea84ec

Branch: refs/heads/trunk
Commit: 4bea84ecb87f9d58caca4a62666c17390ede32d7
Parents: 01c3a94
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Fri May 5 19:19:37 2017 +1000
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri May 5 19:19:37 2017 +1000

----------------------------------------------------------------------
 libcloud/test/dns/test_digitalocean.py | 45 -----------------------------
 1 file changed, 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4bea84ec/libcloud/test/dns/test_digitalocean.py
----------------------------------------------------------------------
diff --git a/libcloud/test/dns/test_digitalocean.py b/libcloud/test/dns/test_digitalocean.py
index d8235b4..00c8fd5 100644
--- a/libcloud/test/dns/test_digitalocean.py
+++ b/libcloud/test/dns/test_digitalocean.py
@@ -116,16 +116,6 @@ class DigitalOceanDNSMockHttp(MockHttp):
         return (self.response_map[self.type], body, {},
                 httplib.responses[self.response_map[self.type]])
 
-    def _v2_domains_EMPTY(self, method, url, body, headers):
-        body = self.fixtures.load('_v2_domains_EMPTY.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
-    def _v2_domains_UNAUTHORIZED(self, method, url, body, headers):
-        body = self.fixtures.load('_v2_domains_UNAUTHORIZED.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
     def _v2_domains_testdomain(self, method, url, body, headers):
         body = self.fixtures.load('_v2_domains_testdomain.json')
         return (self.response_map[self.type], body, {},
@@ -151,34 +141,6 @@ class DigitalOceanDNSMockHttp(MockHttp):
         return (self.response_map[self.type], body, {},
                 httplib.responses[self.response_map[self.type]])
 
-    def _v2_domains_testdomain_records_1234560(
-            self, method, url, body, headers):
-        body = self.fixtures.load(
-            '_v2_domains_testdomain_records_1234560.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
-    def _v2_domains_testdomain_records_1234561(
-            self, method, url, body, headers):
-        body = self.fixtures.load(
-            '_v2_domains_testdomain_records_1234561.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
-    def _v2_domains_testdomain_records_1234562(
-            self, method, url, body, headers):
-        body = self.fixtures.load(
-            '_v2_domains_testdomain_records_1234562.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
-    def _v2_domains_testdomain_records_1234563(
-            self, method, url, body, headers):
-        body = self.fixtures.load(
-            '_v2_domains_testdomain_records_1234563.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
     def _v2_domains_testdomain_records_1234564(
             self, method, url, body, headers):
         body = self.fixtures.load(
@@ -192,13 +154,6 @@ class DigitalOceanDNSMockHttp(MockHttp):
         return (self.response_map[self.type], body, {},
                 httplib.responses[self.response_map[self.type]])
 
-    def _v2_domains_testdomain_records_1234564_NOT_FOUND(
-            self, method, url, body, headers):
-        body = self.fixtures.load(
-            '_v2_domains_testdomain_records_1234564_NOT_FOUND.json')
-        return (self.response_map[self.type], body, {},
-                httplib.responses[self.response_map[self.type]])
-
     def _v2_domains_testdomain_records_1234564_UPDATE(
             self, method, url, body, headers):
         body = self.fixtures.load(


Mime
View raw message