Closed blackfist closed 9 years ago
Nice catch, proving that 100% test coverage does not mean good testing!
For the record, it turns out that other properly-tested functions call is_fqdn()
so the test suite sees statements executed. But explicit testing is the proper approach for sure.
The
is_fqdn
wasn't being tested in thetests.py
file. Not sure how you were getting that 100% coverage. Anyway, theis_fqdn
function was not wrapping there.match
inbool
like the otheris_*
functions were so I fixed that and tested it. Enjoy.