コード例 #1
0
def test_autorules_client():
    app = gh_app(_setup)
    c = Client(app)

    i, s, h = c.open('/')
    assert '404' in s

    i, s, h = c.open('/pages/')
    print i, s, h
    assert '200' in s
    assert 'hello' in ''.join(i)
コード例 #2
0
def test_appliance():
    gh_app(_setup)