Ejemplo n.º 1
0
# -*- coding: utf-8 -*-
from base import CatsHttpBase

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


Ejemplo n.º 2
0
def test_http_server():
    cats = CatsHttpBase()
    assert cats
    httpd = cats.make_server('', 8000)
    assert httpd