pep8
This commit is contained in:
parent
8da1d31432
commit
08777e4b18
@ -17,12 +17,14 @@ class FakeZone:
|
||||
|
||||
|
||||
class FakeResourceRecordSet:
|
||||
|
||||
def __init__(self, name, type, ttl, rrlist):
|
||||
self.name = name
|
||||
self.type = type
|
||||
self.ttl = ttl
|
||||
self.rrList = rrlist
|
||||
|
||||
|
||||
class Route53Backend(BaseBackend):
|
||||
|
||||
def __init__(self):
|
||||
@ -49,5 +51,3 @@ class Route53Backend(BaseBackend):
|
||||
|
||||
|
||||
route53_backend = Route53Backend()
|
||||
|
||||
|
||||
|
@ -33,6 +33,7 @@ def get_or_delete_hostzone_response(request, full_url, headers):
|
||||
route53_backend.delete_hosted_zone(zoneid)
|
||||
return 200, headers, DELETE_HOSTED_ZONE_RESPONSE
|
||||
|
||||
|
||||
def rrset_response(request, full_url, headers):
|
||||
parsed_url = urlparse(full_url)
|
||||
method = request.method
|
||||
@ -120,5 +121,4 @@ LIST_HOSTED_ZONES_RESPONSE = """<ListHostedZonesResponse xmlns="https://route53.
|
||||
</HostedZone>
|
||||
{% endfor %}
|
||||
</HostedZones>
|
||||
</ListHostedZonesResponse>"""
|
||||
|
||||
</ListHostedZonesResponse>"""
|
||||
|
@ -23,7 +23,7 @@ def test_hosted_zone():
|
||||
zones = conn.get_all_hosted_zones()
|
||||
len(zones["ListHostedZonesResponse"]["HostedZones"]).should.equal(2)
|
||||
|
||||
id1 = firstzone["CreateHostedZoneResponse"]["HostedZone"]["Id"]
|
||||
id1 = firstzone["CreateHostedZoneResponse"]["HostedZone"]["Id"]
|
||||
zone = conn.get_hosted_zone(id1)
|
||||
zone["GetHostedZoneResponse"]["HostedZone"]["Name"].should.equal("testdns.aws.com")
|
||||
|
||||
@ -52,7 +52,6 @@ def test_rrset():
|
||||
rrsets = conn.get_all_rrsets(zoneid, type="CNAME")
|
||||
rrsets.should.have.length_of(0)
|
||||
|
||||
|
||||
changes = ResourceRecordSets(conn, zoneid)
|
||||
changes.add_change("DELETE", "foo.bar.testdns.aws.com", "A")
|
||||
changes.commit()
|
||||
|
Loading…
Reference in New Issue
Block a user