Fixed indentation

This commit is contained in:
Kush Bavishi 2019-08-07 14:23:09 -07:00
parent a6bf081bec
commit a97283f0a4
1 changed files with 25 additions and 18 deletions

View File

@ -450,24 +450,31 @@ class TestAcme(unittest.TestCase):
account_number = "1234567890" account_number = "1234567890"
path = "a/b/c" path = "a/b/c"
zones = ['example.com', 'test.example.com'] zones = ['example.com', 'test.example.com']
paginate_response = [{'properties': {'name': 'example.com.', 'accountName': 'example', 'type': 'PRIMARY', paginate_response = [{
'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9, 'properties': {
'lastModifiedDateTime': '2017-06-14T06:45Z'}, 'registrarInfo': { 'name': 'example.com.', 'accountName': 'example', 'type': 'PRIMARY',
'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.', 'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9,
'example.ultradns.biz.', 'example.ultradns.org.']}}, 'lastModifiedDateTime': '2017-06-14T06:45Z'},
'inherit': 'ALL'}, 'registrarInfo': {
{'properties': {'name': 'test.example.com.', 'accountName': 'example', 'type': 'PRIMARY', 'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.',
'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9, 'example.ultradns.biz.', 'example.ultradns.org.']}},
'lastModifiedDateTime': '2017-06-14T06:45Z'}, 'registrarInfo': { 'inherit': 'ALL'}, {
'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.', 'properties': {
'example.ultradns.biz.', 'example.ultradns.org.']}}, 'name': 'test.example.com.', 'accountName': 'example', 'type': 'PRIMARY',
'inherit': 'ALL'}, 'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9,
{'properties': {'name': 'example2.com.', 'accountName': 'example', 'type': 'SECONDARY', 'lastModifiedDateTime': '2017-06-14T06:45Z'},
'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9, 'registrarInfo': {
'lastModifiedDateTime': '2017-06-14T06:45Z'}, 'registrarInfo': { 'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.',
'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.', 'example.ultradns.biz.', 'example.ultradns.org.']}},
'example.ultradns.biz.', 'example.ultradns.org.']}}, 'inherit': 'ALL'}, {
'inherit': 'ALL'}] 'properties': {
'name': 'example2.com.', 'accountName': 'example', 'type': 'SECONDARY',
'dnssecStatus': 'UNSIGNED', 'status': 'ACTIVE', 'resourceRecordCount': 9,
'lastModifiedDateTime': '2017-06-14T06:45Z'},
'registrarInfo': {
'nameServers': {'missing': ['example.ultradns.com.', 'example.ultradns.net.',
'example.ultradns.biz.', 'example.ultradns.org.']}},
'inherit': 'ALL'}]
ultradns._paginate = Mock(path, "zones") ultradns._paginate = Mock(path, "zones")
ultradns._paginate.side_effect = [[paginate_response]] ultradns._paginate.side_effect = [[paginate_response]]
result = ultradns.get_zones(account_number) result = ultradns.get_zones(account_number)