@@ -66,15 +66,15 @@ def test_resolve_zone_name(self):
6666 res = self .dns_client ._get_zone_id_from_name ('example.com' )
6767 self .assertEqual ([12345 ], res )
6868 self .client ['Account' ].getDomains .assert_called_once_with (
69- filter = {"domains" : {"name" : {"operation" : "_= example.com" }}})
69+ filter = {"domains" : {"name" : {"operation" : "_= example.com" }}})
7070
7171 # no matches
7272 self .client ['Account' ].getDomains .reset_mock ()
7373 self .client ['Account' ].getDomains .return_value = []
7474 res = self .dns_client ._get_zone_id_from_name ('example.com' )
7575 self .assertEqual ([], res )
7676 self .client ['Account' ].getDomains .assert_called_once_with (
77- filter = {"domains" : {"name" : {"operation" : "_= example.com" }}})
77+ filter = {"domains" : {"name" : {"operation" : "_= example.com" }}})
7878
7979 def test_create_zone (self ):
8080 call = self .client ['Dns_Domain' ].createObject
@@ -150,30 +150,30 @@ def test_get_record(self):
150150 D .return_value = [records [1 ]]
151151 self .dns_client .get_records (12345 , type = 'a' )
152152 D .assert_called_once_with (
153- id = 12345 ,
154- filter = {'resourceRecords' : {'type' : {"operation" : "_= a" }}},
155- mask = ANY )
153+ id = 12345 ,
154+ filter = {'resourceRecords' : {'type' : {"operation" : "_= a" }}},
155+ mask = ANY )
156156
157157 D .reset_mock ()
158158 D .return_value = [records [0 ]]
159159 self .dns_client .get_records (12345 , host = 'a' )
160160 D .assert_called_once_with (
161- id = 12345 ,
162- filter = {'resourceRecords' : {'host' : {"operation" : "_= a" }}},
163- mask = ANY )
161+ id = 12345 ,
162+ filter = {'resourceRecords' : {'host' : {"operation" : "_= a" }}},
163+ mask = ANY )
164164
165165 D .reset_mock ()
166166 D .return_value = records [3 :5 ]
167167 self .dns_client .get_records (12345 , data = 'a' )
168168 D .assert_called_once_with (
169- id = 12345 ,
170- filter = {'resourceRecords' : {'data' : {"operation" : "_= a" }}},
171- mask = ANY )
169+ id = 12345 ,
170+ filter = {'resourceRecords' : {'data' : {"operation" : "_= a" }}},
171+ mask = ANY )
172172
173173 D .reset_mock ()
174174 D .return_value = records [3 :5 ]
175175 self .dns_client .get_records (12345 , ttl = '86400' )
176176 D .assert_called_once_with (
177- id = 12345 ,
178- filter = {'resourceRecords' : {'ttl' : {"operation" : 86400 }}},
179- mask = ANY )
177+ id = 12345 ,
178+ filter = {'resourceRecords' : {'ttl' : {"operation" : 86400 }}},
179+ mask = ANY )
0 commit comments