<s> from neutron . objects . port . extensions import port_security <EOL> from neutron . tests . unit . objects import test_base as obj_test_base <EOL> from neutron . tests . unit import testlib_api <EOL> class PortSecurityIfaceObjTestCase ( obj_test_base . BaseObjectIfaceTestCase ) : <EOL> _test_class = port_security . PortSecurity <EOL> class PortSecurityDbObjTestCase ( obj_test_base . BaseDbObjectTestCase , <EOL> testlib_api . SqlTestCase ) : <EOL> _test_class = port_security . PortSecurity <EOL> def setUp ( self ) : <EOL> super ( PortSecurityDbObjTestCase , self ) . setUp ( ) <EOL> self . _create_test_network ( ) <EOL> self . _create_test_port ( self . _network ) <EOL> for obj in self . db_objs : <EOL> obj [ '<STR_LIT>' ] = self . _port [ '<STR_LIT:id>' ] <EOL> for obj in self . obj_fields : <EOL> obj [ '<STR_LIT>' ] = self . _port [ '<STR_LIT:id>' ] </s>
