From 08777e4b182378d392bb5307afe85745e01705e4 Mon Sep 17 00:00:00 2001 From: jjofseattle Date: Fri, 15 Nov 2013 15:35:46 -0800 Subject: [PATCH] pep8 --- moto/route53/models.py | 4 ++-- moto/route53/responses.py | 4 ++-- tests/test_route53/test_route53.py | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/moto/route53/models.py b/moto/route53/models.py index 39ee4fc6d..4afcfe922 100644 --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -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() - - diff --git a/moto/route53/responses.py b/moto/route53/responses.py index c2527320e..55160922e 100644 --- a/moto/route53/responses.py +++ b/moto/route53/responses.py @@ -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 = """""" diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py index ceffa63e0..3e6132833 100644 --- a/tests/test_route53/test_route53.py +++ b/tests/test_route53/test_route53.py @@ -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()