#NEWLINE# def test_simple( qidoc_action ) : #NEWLINE# #INDENT# world_proj = qidoc_action . add_test_project ( 'world' ) #NEWLINE# qidoc_action ( 'build' , 'world' ) #NEWLINE# index_html = world_proj . index_html #NEWLINE# with mock . patch ( 'webbrowser.open' ) as mock_open : #NEWLINE# #INDENT# qidoc_action ( 'open' , 'world' ) #NEWLINE# index_html = mock_open . call_args [ 0 ] [ 0 ] #NEWLINE# index_html = index_html . replace ( 'file://' , '' ) #NEWLINE# assert os . path . exists ( index_html )