Merge lp:~jtv/maas/split-macaddress-tests 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: | 2756 |
Proposed branch: | lp:~jtv/maas/split-macaddress-tests |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
109 lines (+18/-13) 1 file modified
src/maasserver/models/tests/test_macaddress.py (+18/-13) |
To merge this branch: | bzr merge lp:~jtv/maas/split-macaddress-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+231283@code.launchpad.net |
Commit message
Split up a MACAddress test case before I add new tests to it. Preparation for an IPv6 branch.
Description of the change
This takes the original test case back to covering only a single method, as it did until I added tests for a second method the other day. Instead, I renamed the test case to reflect the name of the method it tested.
The method name didn't leave much room in the naming of the test methods to explain complex situations that need testing. Dedicating the test case to a single method lets me remove the tested method's name from the test functions' names.
Jeroen
To post a comment you must log in.
Self-approving, since the only available reviewer is busy: affects only tests, simple, no functional change. I verified that the same number of tests gets run.