def setUp(self): LiquidWebMockHttp.type = None LiquidWebDNSDriver.connectionCls.conn_class = LiquidWebMockHttp self.driver = LiquidWebDNSDriver(*DNS_PARAMS_LIQUIDWEB) self.test_zone = Zone(id='11', type='master', ttl=None, domain='example.com', extra={}, driver=self.driver) self.test_record = Record(id='13', type=RecordType.A, name='example.com', zone=self.test_zone, data='127.0.0.1', driver=self, extra={})
def setUp(self): LiquidWebMockHttp.type = None LiquidWebDNSDriver.connectionCls.conn_class = LiquidWebMockHttp self.driver = LiquidWebDNSDriver(*DNS_PARAMS_LIQUIDWEB) self.test_zone = Zone( id="11", type="master", ttl=None, domain="example.com", extra={}, driver=self.driver, ) self.test_record = Record( id="13", type=RecordType.A, name="example.com", zone=self.test_zone, data="127.0.0.1", driver=self, extra={}, )