jantman / pydnstest

ABANDONED - Python tool for testing DNS changes (add, remove, rename, change records) against a staging DNS server, verifying the same changes against production, or confirming that a record returns the same result in both environments.
GNU Affero General Public License v3.0
11 stars 1 forks source link

refactor configuration testing #11

Open jantman opened 10 years ago

jantman commented 10 years ago

configuration-related testing, specifically in dnstest_main_test.py, uses a OptionsObject and config file strings to mock test data. this is very fragile as all of them need to be updated every time a config value or option is added.

change these to use generator methods that know the right defaults.