#NEWLINE# def test_register( self ) : #NEWLINE# #INDENT# obj_type = ObjectType ( ObjectTypeEnum . SYMMETRIC_KEY ) #NEWLINE# key = self . _get_symmetric_key ( ) #NEWLINE# attributes = [ ] #NEWLINE# template_attribute = TemplateAttribute ( attributes = attributes ) #NEWLINE# res = self . kmip . register ( obj_type , template_attribute , key ) #NEWLINE# self . assertNotEqual ( None , res , 'result is None' ) #NEWLINE# self . assertEqual ( ResultStatus . SUCCESS , res . result_status . value , 'result status did not return success' )