Пример #1
0
def test_casperjs_fail():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        try:
            run('fixtures/test_casperjs_fail.js')
        except AssertionError:
            pass
        else:
            raise AssertionError('test does not fail')
Пример #2
0
def test_casperjs():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        run('fixtures/test_casperjs.js')
Пример #3
0
def test_casperjs():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        run('test_casperjs.js')