#NEWLINE# def test_port_unsupported_deviceowner( self ) : #NEWLINE# #INDENT# 'Verifies detection of unsupported device owners for ports.' #NEWLINE# port_context = self . _create_port_context_normal ( ) #NEWLINE# port = port_context . _port #NEWLINE# unsupported_owners = [ n_const . DEVICE_OWNER_ROUTER_INTF , n_const . DEVICE_OWNER_ROUTER_GW , n_const . DEVICE_OWNER_FLOATINGIP , n_const . DEVICE_OWNER_ROUTER_SNAT , n_const . DEVICE_OWNER_LOADBALANCER , n_const . DEVICE_OWNER_LOADBALANCERV2 , 'controller:foobar' ] #NEWLINE# for owner in unsupported_owners : #NEWLINE# #INDENT# port [ 'device_owner' ] = owner #NEWLINE# self . assertFalse ( self . mech_driver . _is_supported_deviceowner ( port ) )