#NEWLINE# def test_set_locations( self ) : #NEWLINE# #INDENT# with mock . patch ( 'certbot_apache.parser.os.path' ) as mock_path : #NEWLINE# #INDENT# mock_path . isfile . side_effect = [ False , False ] #NEWLINE# results = self . parser . _set_locations ( ) #NEWLINE# self . assertEqual ( results [ 'default' ] , results [ 'listen' ] ) #NEWLINE# self . assertEqual ( results [ 'default' ] , results [ 'name' ] )