def test_01_autodiscover(self): """ Test ``autodiscover``. """ autodiscover() self.assertTrue(len(registry._registry) > 0)
def ensure_autodiscover(): """Ensure the IP checkers are auto-discovered.""" if not registry.registry: autodiscover()