diff --git a/moto/route53/models.py b/moto/route53/models.py index 4afcfe922..0ee7dc446 100644 --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -16,15 +16,6 @@ class FakeZone: del self.rrsets[name] -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): diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py index 3e6132833..57da8112a 100644 --- a/tests/test_route53/test_route53.py +++ b/tests/test_route53/test_route53.py @@ -37,6 +37,10 @@ def test_hosted_zone(): @mock_route53 def test_rrset(): conn = boto.connect_route53('the_key', 'the_secret') + + conn.get_all_rrsets.when.called_with("abcd", type="A").\ + should.throw(boto.route53.exception.DNSServerError, "404 Not Found") + zone = conn.create_hosted_zone("testdns.aws.com") zoneid = zone["CreateHostedZoneResponse"]["HostedZone"]["Id"]