예제 #1
0
파일: tests.py 프로젝트: djabber/Dashboard
 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()