#NEWLINE# def test_can_execute_rjs( self ) : #NEWLINE# #INDENT# s = Site ( TEST_SITE ) #NEWLINE# s . config . plugins = [ 'hyde.ext.plugins.js.RequireJSPlugin' ] #NEWLINE# source = TEST_SITE . child ( 'content/media/js/rjs.conf' ) #NEWLINE# target = File ( Folder ( s . config . deploy_root_path ) . child ( 'media/js/app.js' ) ) #NEWLINE# gen = Generator ( s ) #NEWLINE# gen . generate_resource_at_path ( source ) #NEWLINE# assert target . exists #NEWLINE# text = target . read_all ( ) #NEWLINE# expected_text = File ( RJS_SOURCE . child ( 'app.js' ) ) . read_all ( ) #NEWLINE# assert ( text == expected_text ) #NEWLINE# return