コード例 #1
0
ファイル: test_ext.py プロジェクト: arthru/webtest
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
ファイル: test_ext.py プロジェクト: arthru/webtest
def test_casperjs():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        run('fixtures/test_casperjs.js')
コード例 #3
0
ファイル: test_casperjs.py プロジェクト: projectfixup/webtest
def test_casperjs():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        run('test_casperjs.js')