#NEWLINE# @ mock . patch ( 'systemjs.management.commands.systemjs_bundle.find_systemjs_location' ) #NEWLINE# def test_systemjs_outside_of_static_root( self , systemjs_mock , bundle_mock ) : #NEWLINE# #INDENT# '\n        If `system.js` is not inside of settings.STATIC_ROOT, it\n        should not get post-processed explicitly as collectstatic does this.\n        ' #NEWLINE# bundle_mock . side_effect = _bundle #NEWLINE# systemjs_mock . return_value = '/non/existant/path' #NEWLINE# self . assertEqual ( _num_files ( settings . STATIC_ROOT ) , 0 ) #NEWLINE# call_command ( 'systemjs_bundle' , stdout = self . out , stderr = self . err ) #NEWLINE# self . assertEqual ( _num_files ( settings . STATIC_ROOT ) , 2 ) #NEWLINE# self . assertEqual ( bundle_mock . call_count , 1 )