From 2d6e64924589a4a6eed7ec0c8bdb543a90a7e75b Mon Sep 17 00:00:00 2001 From: jjofseattle Date: Fri, 15 Nov 2013 16:20:25 -0800 Subject: [PATCH] improve coverage --- moto/route53/models.py | 9 --------- tests/test_route53/test_route53.py | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/moto/route53/models.py b/moto/route53/models.py index 4afcfe92..0ee7dc44 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 3e613283..57da8112 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"]