#NEWLINE# def create_test_port( **kw ) : #NEWLINE# #INDENT# "Create test port entry in DB and return Port DB object.\n\n    Function to be used to create test Port objects in the database.\n\n    :param kw: kwargs with overriding values for port's attributes.\n    :returns: Test Port DB object.\n\n    " #NEWLINE# port = get_test_port ( ** kw ) #NEWLINE# if ( 'id' not in kw ) : #NEWLINE# #INDENT# del port [ 'id' ] #NEWLINE# #UNINDENT# dbapi = db_api . get_instance ( ) #NEWLINE# return dbapi . create_port ( port )