Merge lp:~jtv/maas/test-multi-zonegenerator into lp:~maas-committers/maas/trunk
Proposed by
Jeroen T. Vermeulen
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1856 |
Proposed branch: | lp:~jtv/maas/test-multi-zonegenerator |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
284 lines (+189/-22) 2 files modified
src/maasserver/dns.py (+15/-17) src/maasserver/tests/test_dns.py (+174/-5) |
To merge this branch: | bzr merge lp:~jtv/maas/test-multi-zonegenerator |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+203506@code.launchpad.net |
Commit message
More testing for ZoneGenerator.
Description of the change
Turns out much of ZoneGenerator, a nontrivial class, was untested — along with some of its helpers. All we had was three top-level tests. Here I add some.
Also, _get_forward_
Jeroen
To post a comment you must log in.
[1]
=== modified file 'src/maasserver /dns.py'
[...]
Everything in here is change for the sake of change. If you must, land
it, but I'm not sure there was any lack of clarity before, and there
certainly isn't any more now.
[2]
+class TestLazyDict( TestCase) :
This is cool. Thanks for adding it; I was the one who didn't test it the
first time around. Same goes for ZoneGenerator, except for the top-level
tests.
[3]
+ def test_holds_ one_value_ per_key( self):
Not sure what this demonstrates. lazydict inherits from dict, so this
isn't surprising behaviour.