

def test_add_record_set(self):
    from gcloud.dns.resource_record_set import ResourceRecordSet
    zone = _Zone()
    changes = self._makeOne(zone)
    rrs = ResourceRecordSet('test.example.com', 'CNAME', 3600, ['www.example.com'], changes)
    changes.add_record_set(rrs)
    self.assertEqual(list(changes.additions), [rrs])

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/test_changes.py TestChanges.test_add_record_set/VarMisuse@48/78 `zone`->`changes`