@@ -111,6 +111,15 @@ def test_get_zone_zone_does_not_exist(self):
111111 else :
112112 self .fail ("Exception was not thrown" )
113113
114+ def test_get_zone_success (self ):
115+ NsOneMockHttp .type = "GET_ZONE_SUCCESS"
116+ zone = self .driver .get_zone (zone_id = "example.com" )
117+
118+ self .assertEqual (zone .id , "example.com" )
119+ self .assertEqual (zone .domain , "example.com" )
120+ self .assertIsNone (zone .type ),
121+ self .assertEqual (zone .ttl , 3600 )
122+
114123 def test_create_zone_success (self ):
115124 NsOneMockHttp .type = "CREATE_ZONE_SUCCESS"
116125 zone = self .driver .create_zone (domain = "newzone.com" )
@@ -250,7 +259,7 @@ def _v1_zones(self, method, url, body, headers):
250259
251260 return httplib .OK , body , {}, httplib .responses [httplib .OK ]
252261
253- def _v1_zones_getzone_com_GET_ZONE_SUCCESS (self , method , url , body , headers ):
262+ def _v1_zones_example_com_GET_ZONE_SUCCESS (self , method , url , body , headers ):
254263 body = self .fixtures .load ("get_zone_success.json" )
255264
256265 return httplib .OK , body , {}, httplib .responses [httplib .OK ]
0 commit comments