Python BaseHTTPServer 模块,test() 实例源码

我们从Python开源项目中,提取了以下19个代码示例,用于说明如何使用BaseHTTPServer.test()

项目:kinect-2-libras    作者:inessadl    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:hostapd-mana    作者:adde88    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:tools    作者:pwnaccelerator    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:oil    作者:oilshell    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:python2-tracer    作者:extremecoders-re    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:sslstrip-hsts-openwrt    作者:adde88    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:Opencv_learning    作者:wjb711    | 项目源码 | 文件源码
def printer1(self,img): #ô??????Ÿ????
        print ('start print '+img)
        printer_name = win32print.GetDefaultPrinter ()
    #
    # raw_data could equally be raw PCL/PS read from
    #  some print-to-file operation
    #
        if sys.version_info >= (3,):
          raw_data = bytes (a, "utf-8")
        else:
          raw_data = "This is a test"

        hPrinter = win32print.OpenPrinter (printer_name)
        try:
          hJob = win32print.StartDocPrinter (hPrinter, 1, (img, None, "RAW"))
          print ('here1'+img)
          try:
            win32print.StartPagePrinter (hPrinter)
            win32print.WritePrinter (hPrinter, raw_data)
            win32print.EndPagePrinter (hPrinter)
            print ('here2')
          finally:
            win32print.EndDocPrinter (hPrinter)
            print ('here3')
        finally:
          win32print.ClosePrinter (hPrinter)
          print ('here4')
项目:Opencv_learning    作者:wjb711    | 项目源码 | 文件源码
def test(a1,a2):
    Printer_()
##? ?? http?webservice?? ??
项目:Opencv_learning    作者:wjb711    | 项目源码 | 文件源码
def test(HandlerClass=SimpleHTTPRequestHandler,
         ServerClass=BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:pefile.pypy    作者:cloudtracer    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:ndk-python    作者:gittor    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:empyrion-python-api    作者:huhlig    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:Random    作者:rkramesh    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:exp-for-python    作者:backlion    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)
项目:RocAlphaGo    作者:Rochester-NRT    | 项目源码 | 文件源码
def test(HandlerClass = SimpleHTTPRequestHandler,
         ServerClass = BaseHTTPServer.HTTPServer):
    BaseHTTPServer.test(HandlerClass, ServerClass)