#NEWLINE# def test_ensure_vlan_bridge_with_existed_brq( self ) : #NEWLINE# #INDENT# with mock . patch . object ( ens_vl_fn . lbm , 'ensure_vlan' ) as ens_vl_fn , mock . patch . object ( self . lbm , 'ensure_bridge' ) as ens : #NEWLINE# #INDENT# ens_vl_fn . return_value = None #NEWLINE# ens . return_value = 'br-eth2' #NEWLINE# self . assertEqual ( 'br-eth2' , self . lbm . ensure_vlan_bridge ( '123' , 'br-eth2' , None , None ) ) #NEWLINE# ens . assert_called_with ( 'br-eth2' )