コード例 #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
ファイル: test_http.py プロジェクト: salexkidd/cats
def test_http_server():
    cats = CatsHttpBase()
    assert cats
    httpd = cats.make_server('', 8000)
    assert httpd