

def test_update_record(self):
    record = self.driver.update_record(self.test_record, name='newrecord.example.com', type=RecordType.A, data='127.0.0.1', extra={
        'ttl': 300,
    })
    self.assertEqual(record.id, None)
    self.assertEqual(record.name, 'newrecord.example.com')
    self.assertEqual(record.data, '127.0.0.1')
    self.assertEqual(record.type, RecordType.A)
    self.assertEqual(record.ttl, 300)

dataset/ETHPy150Open apache/libcloud/libcloud/test/dns/test_powerdns.py PowerDNSTestCase.test_update_record/original