Orbits
1
|
Public Member Functions | |
def | __init__ |
def | serve |
def | start |
def | stop |
def | base_url |
Public Attributes | |
thread | |
Private Attributes | |
_run | |
Basic single-threaded http server simulating a package index You can use this server in unittest like this:: s = IndexServer() s.start() index_url = s.base_url() + 'mytestindex' # do some test requests to the index # The index files should be located in setuptools/tests/indexes s.stop()
def setuptools.tests.server.IndexServer.__init__ | ( | self, | |
server_address = ('', 0 , |
|||
RequestHandlerClass = SimpleHTTPRequestHandler |
|||
) |
def setuptools.tests.server.IndexServer.base_url | ( | self | ) |
def setuptools.tests.server.IndexServer.serve | ( | self | ) |
def setuptools.tests.server.IndexServer.start | ( | self | ) |
def setuptools.tests.server.IndexServer.stop | ( | self | ) |
|
private |
setuptools.tests.server.IndexServer.thread |
Copyright 2014 Google Inc. All rights reserved.