

def test_create_record(self):
    record = self.test_zone.create_record(name='newrecord.example.com', type=RecordType.A, data='192.0.5.4', extra={
        'ttl': 86400,
    })
    self.assertEqual(record.id, None)
    self.assertEqual(record.name, 'newrecord.example.com')
    self.assertEqual(record.data, '192.0.5.4')
    self.assertEqual(record.type, RecordType.A)
    self.assertEqual(record.ttl, 86400)

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