#NEWLINE# def test_ensure_local_bridge_with_existed_brq( self ) : #NEWLINE# #INDENT# with mock . patch . object ( ens_fn . lbm , 'ensure_bridge' ) as ens_fn : #NEWLINE# #INDENT# ens_fn . return_value = 'br-eth2' #NEWLINE# self . lbm . ensure_local_bridge ( '54321' , 'br-eth2' ) #NEWLINE# ens_fn . assert_called_once_with ( 'br-eth2' )