Example #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)
Example #2
0
def main():
    wsgiref.handlers.CGIHandler().run(application())
Example #3
0
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)