improve coverage
This commit is contained in:
parent
08777e4b18
commit
2d6e649245
2 changed files with 4 additions and 9 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue