Merge lp:~diane-trout/py3dns/py3dns into lp:py3dns
Status: | Merged |
---|---|
Merged at revision: | 108 |
Proposed branch: | lp:~diane-trout/py3dns/py3dns |
Merge into: | lp:py3dns |
Diff against target: |
197 lines (+153/-1) 6 files modified
.bzrignore (+3/-0) DNS/Base.py (+5/-1) DNS/tests/__init__.py (+13/-0) DNS/tests/testPackers.py (+3/-0) DNS/tests/test_base.py (+123/-0) test.py (+6/-0) |
To merge this branch: | bzr merge lp:~diane-trout/py3dns/py3dns |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Kitterman | Approve | ||
Review via email:
|
Commit message
Diane Trout on 2013-03-22
Add a unittest based test driver.
To make testing ParseResolvConf easier split it into two functions. The first takes a filename and opens it, and then passes it to a new function ParseResolvConf
Added tests to check the A, AAAA, MX, SRV return values and DKIM txt records and IDN domain names
Ignore some common auto-generated python
Description of the change
I added a test driver that uses unittest to do some basic sanity checks for the DnsResolv api. I moved the one unittest style test case form py3dns/tests into DNS/tests to make it more like the dkim test code.
Undoubtibly it needs more test coverage.
What do you think of that test layout?
The next feature is should it return a byte string for names? E.g.
b'mail.ietf.org' instead of 'mail.ietf.org'?
Looks good. I've just merged and pushed this as well os some other test related changes I had locally I'd found I forgot to commit. You can see in tests/test7.py the start of an idea for returning different types based on what hte application asks for that Stuart mentioned in one of his earlier replies.
Thank you for your contribution to py3dns. I look forward to more. Sorry it took a little while to get it merged.