Пример #1
0
 def test_01_autodiscover(self):
     """
     Test ``autodiscover``.
     """
     autodiscover()
     self.assertTrue(len(registry._registry) > 0)
Пример #2
0
def ensure_autodiscover():
    """Ensure the IP checkers are auto-discovered."""
    if not registry.registry:
        autodiscover()