示例#1
0
from webtest import TestApp
from helloworld import application

app = TestApp(application())

def test_index():
    # fires off a task queue and should pass without exceptions
    response = app.get('/')
    assert 'Hello world!' in str(response)
示例#2
0
文件: main.py 项目: trammell/NoseGAE
def main():
    wsgiref.handlers.CGIHandler().run(application())
示例#3
0
文件: test.py 项目: trammell/NoseGAE
from webtest import TestApp
from helloworld import application

app = TestApp(application())


def test_index():
    # this will call get_current_user()
    response = app.get('/')
    assert 'Hello world!' in str(response)