コード例 #1
0
ファイル: test_helpers.py プロジェクト: PeterJCLaw/nemesis
def modify_endpoint(endpoint):
    return "/userman" + endpoint if apache_mode() else endpoint
コード例 #2
0
ファイル: test_helpers.py プロジェクト: PeterJCLaw/nemesis
def modify_endpoint(endpoint):
    return "/userman" + endpoint if apache_mode() else endpoint
コード例 #3
0
ファイル: test_helpers.py プロジェクト: PeterJCLaw/nemesis
def make_connection():
    if not apache_mode():
        return httplib.HTTPConnection("127.0.0.1", 5000)
    else:
        return httplib.HTTPSConnection("localhost")
コード例 #4
0
ファイル: test_helpers.py プロジェクト: PeterJCLaw/nemesis
def make_connection():
    if not apache_mode():
        return httplib.HTTPConnection("127.0.0.1",5000)
    else:
        return httplib.HTTPSConnection("localhost")