示例#1
0
文件: app.py 项目: salexkidd/cats
# -*- coding: utf-8 -*-
from base import CatsHttpBase

cats = CatsHttpBase()
httpd = cats.make_server('', 8000)
print("Serving on port 8000...")
httpd.serve_forever()


示例#2
0
def test_http_server():
    cats = CatsHttpBase()
    assert cats
    httpd = cats.make_server('', 8000)
    assert httpd