예제 #1
0
파일: test.py 프로젝트: StremorCorp/NoseGAE
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)