#NEWLINE# def test_reclaim_local_vlan_vlan( self ) : #NEWLINE# #INDENT# self . mock_map_tun_bridge_expected . append ( mock . call . reclaim_local_vlan ( port = self . MAP_TUN_PHY_OFPORT , lvid = a . LVM_VLAN . vlan ) ) #NEWLINE# self . mock_int_bridge_expected . append ( mock . call . reclaim_local_vlan ( port = self . INT_OFPORT , segmentation_id = LS_ID ) ) #NEWLINE# a = self . _build_agent ( ) #NEWLINE# a . phys_brs [ 'net1' ] = self . mock_map_tun_bridge #NEWLINE# a . phys_ofports [ 'net1' ] = self . MAP_TUN_PHY_OFPORT #NEWLINE# a . int_ofports [ 'net1' ] = self . INT_OFPORT #NEWLINE# a . available_local_vlans = set ( ) #NEWLINE# a . local_vlan_map [ NET_UUID ] = self . LVM_VLAN #NEWLINE# a . reclaim_local_vlan ( NET_UUID ) #NEWLINE# self . assertIn ( self . LVM_VLAN . vlan , a . available_local_vlans ) #NEWLINE# self . _verify_mock_calls ( )