tests: Make truthy tests more Pythonic.

There's no reason to explicitly tests `is True`. `is_ip` returns `True`
and `assert True` passes whereas `assert False` raises an
`AssertionError`.