def test_templateCF_Route53Record(self):
    resources = {'route53_record': {'testr53record': {'comment': 'testcomment', 'zoneid': 'testzoneid', 'recordsets': [['atest', 'A', '1.2.3.4', '900', '0', 'base'], ['cnametest', 'CNAME', 'example.com', '900', '0', 'base']]}}}
    expected = {'testr53record': {'Type': 'AWS::Route53::RecordSetGroup', 'Properties': {'Comment': 'testcomment', 'HostedZoneId': {'Fn::ImportValue': {'Fn::Sub': ['${DNSStack}-Route53-testzoneid-Zone', {'DNSStack': {'Ref': 'DNSStack'}}]}}, 'RecordSets': [{'Name': 'atest', 'Type': 'A', 'ResourceRecords': ['1.2.3.4'], 'TTL': '900', 'Weight': '0', 'SetIdentifier': 'base'}, {'Name': 'cnametest', 'Type': 'CNAME', 'ResourceRecords': ['example.com'], 'TTL': '900', 'Weight': '0', 'SetIdentifier': 'base'}]}}}
    actual = templateCF(resources, 'resources')
    self.assertDictEqual(actual, expected)
def test_templateCF_Route53Record(self):
    resources = {'route53_record': {'testr53record': {'comment': 'testcomment', 'zoneid': 'testzoneid', 'recordsets': [['atest', 'A', '1.2.3.4', '900', '0', 'base'], ['cnametest', 'CNAME', 'example.com', '900', '0', 'base']]}}}
    expected = {'testr53record': {'Type': 'AWS::Route53::RecordSetGroup', 'Properties': {'Comment': 'testcomment', 'HostedZoneId': {'Fn::ImportValue': {'Fn::Sub': ['${DNSStack}-Route53-testzoneid-Zone', {'DNSStack': {'Ref': 'DNSStack'}}]}}, 'RecordSets': [{'Name': 'atest', 'Type': 'A', 'ResourceRecords': ['1.2.3.4'], 'TTL': '900', 'Weight': '0', 'SetIdentifier': 'base'}, {'Name': 'cnametest', 'Type': 'CNAME', 'ResourceRecords': ['example.com'], 'TTL': '900', 'Weight': '0', 'SetIdentifier': 'base'}]}}}
    actual = templateCF(resources, 'resources')
    self.assertDictEqual(actual, expected)