コード例 #1
0
ファイル: pull.py プロジェクト: periscope-ps/periscope
def pull_roots(service_url, print_services=True):
    """
    Pulls gLS from roots hints
    """
    if not service_url:
        service_url = settings.GLS_ROOT_HINTS
    try:
        pull_root_hints(service_url, print_services)
    except Exception as exp:
        raise CommandError(exp)
コード例 #2
0
ファイル: pull.py プロジェクト: periscope-ps/periscope
def pull_roots(service_url, print_services=True):
    """
    Pulls gLS from roots hints
    """
    if not service_url:
        service_url = settings.GLS_ROOT_HINTS
    try:
        pull_root_hints(service_url, print_services)
    except Exception as exp:
        raise CommandError(exp)
コード例 #3
0
ファイル: __init__.py プロジェクト: periscope-ps/periscope
 def tes_pull_root_hints(self):
     roots = pull_root_hints()
     self.assertEqual(type(roots), list)