mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge branch 'master' into python3-no-six
This commit is contained in:
@@ -21,7 +21,7 @@ class HelperProvider(BaseProvider):
|
||||
log = getLogger('HelperProvider')
|
||||
|
||||
SUPPORTS = set(('A', 'PTR'))
|
||||
SUPPORTS_MUTLIVALUE_PTR = False
|
||||
SUPPORTS_MULTIVALUE_PTR = False
|
||||
SUPPORTS_DYNAMIC = False
|
||||
|
||||
id = 'test'
|
||||
@@ -238,8 +238,8 @@ class TestBaseProvider(TestCase):
|
||||
def test_process_desired_zone(self):
|
||||
provider = HelperProvider('test')
|
||||
|
||||
# SUPPORTS_MUTLIVALUE_PTR
|
||||
provider.SUPPORTS_MUTLIVALUE_PTR = False
|
||||
# SUPPORTS_MULTIVALUE_PTR
|
||||
provider.SUPPORTS_MULTIVALUE_PTR = False
|
||||
zone1 = Zone('unit.tests.', [])
|
||||
record1 = Record.new(zone1, 'ptr', {
|
||||
'type': 'PTR',
|
||||
@@ -252,7 +252,7 @@ class TestBaseProvider(TestCase):
|
||||
record2 = list(zone2.records)[0]
|
||||
self.assertEqual(len(record2.values), 1)
|
||||
|
||||
provider.SUPPORTS_MUTLIVALUE_PTR = True
|
||||
provider.SUPPORTS_MULTIVALUE_PTR = True
|
||||
zone2 = provider._process_desired_zone(zone1.copy())
|
||||
record2 = list(zone2.records)[0]
|
||||
from pprint import pprint
|
||||
|
Reference in New Issue
Block a user