예제 #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
def test_casperjs():
    app = webtest.TestApp(application)
    with webtest.casperjs(app) as run:
        run('test_casperjs.js')