Browse Source

Add - Test case.

pull/293/head
Matt 7 years ago
parent
commit
84c883c67f
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/test_octodns_provider_yaml.py

+ 6
- 0
tests/test_octodns_provider_yaml.py View File

@ -60,6 +60,12 @@ class TestYamlProvider(TestCase):
# There should be no changes after the round trip # There should be no changes after the round trip
reloaded = Zone('unit.tests.', []) reloaded = Zone('unit.tests.', [])
target.populate(reloaded) target.populate(reloaded)
self.assertDictEqual(
{'included': ['test']},
filter(
lambda x: x.name == 'included', reloaded.records
)[0]._octodns)
self.assertFalse(zone.changes(reloaded, target=source)) self.assertFalse(zone.changes(reloaded, target=source))
# A 2nd sync should still create everything # A 2nd sync should still create everything


Loading…
Cancel
Save