#NEWLINE# def test_create_no_length( self ) : #NEWLINE# #INDENT# obj_type = ObjectType ( ObjectTypeEnum . SYMMETRIC_KEY ) #NEWLINE# attributes = self . _get_attrs ( ) [ 0 : 2 ] #NEWLINE# template_attribute = TemplateAttribute ( attributes = attributes ) #NEWLINE# res = self . kmip . create ( obj_type , template_attribute ) #NEWLINE# self . assertNotEqual ( None , res , 'result is None' ) #NEWLINE# attrs = res . template_attribute . attributes #NEWLINE# self . assertEqual ( ResultStatus . SUCCESS , res . result_status . value , 'result status did not return success' ) #NEWLINE# self . assertTrue ( self . _check_attr_exists ( attributes [ 2 ] , attributes ) , 'length attribute not returned' )