#NEWLINE# def test_app_resources( ) : #NEWLINE# #INDENT# app = make_app ( ) #NEWLINE# fanstatic = Fanstatic ( app ) #NEWLINE# fanstatic . resource ( 'app.js' , name = 'app_js' ) #NEWLINE# with app . test_client ( ) as client : #NEWLINE# #INDENT# rv = client . get ( '/template/needs_app_js' ) #NEWLINE# expect ( rv . data ) . contains ( '/fanstatic/app/app.js' ) #NEWLINE# rv = client . get ( '/fanstatic/app/app.js' ) #NEWLINE# ( expect ( rv . status_code ) == 200 )