#NEWLINE# def test_get_deletable_bridges( self ) : #NEWLINE# #INDENT# br_list = [ 'br-int' , 'brq1' , 'brq2' , 'brq-user' ] #NEWLINE# expected = set ( br_list [ 1 : 3 ] ) #NEWLINE# lbm = get_linuxbridge_manager ( bridge_mappings = { #NEWLINE# #INDENT# 'physnet0' : 'brq-user' , #NEWLINE# #UNINDENT# } , interface_mappings = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# with mock . patch . object ( bridge_lib , 'get_bridge_names' , return_value = br_list ) : #NEWLINE# #INDENT# self . assertEqual ( br_list , lbm . get_deletable_bridges ( ) )