

def test_create_existing_zone(self):
    PowerDNSMockHttp.type = 'EXISTS'
    extra = {
        'nameservers': ['ns1.example.com', 'ns2.example.com'],
    }
    with self.assertRaises(ZoneAlreadyExistsError):
        self.driver.create_zone('example.com', extra=extra)

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