#NEWLINE# def test_run_internal( self ) : #NEWLINE# #INDENT# self . cmd . build_debug = mock . MagicMock ( ) #NEWLINE# self . cmd . build_production = mock . MagicMock ( ) #NEWLINE# self . cmd . html_requiring_js = mock . MagicMock ( ) #NEWLINE# self . cmd . html_requiring_js . side_effect = ( lambda : [ 'dummy.html' ] ) #NEWLINE# self . env . argument = mock . MagicMock ( ) #NEWLINE# self . env . argument . option . return_value = False #NEWLINE# dummy_project_root = os . path . normcase ( '/dir1/dir2' ) #NEWLINE# with mock . patch ( 'googkit.lib.path.project_root' , return_value = self ) , mock . patch ( 'googkit.commands.build.working_directory' ) : #NEWLINE# #INDENT# self . cmd . run_internal ( ) #NEWLINE# #UNINDENT# self . cmd . build_production . assert_called_once_with ( 'dummy.html' , dummy_project_root , False )