#NEWLINE# def test_register_no_usage_mask( self ) : #NEWLINE# #INDENT# obj_type = ObjectType ( ObjectTypeEnum . SYMMETRIC_KEY ) #NEWLINE# key = self . _get_symmetric_key ( ) #NEWLINE# key . key_block . key_value . attributes = [ ] #NEWLINE# attributes = [ ] #NEWLINE# template_attribute = TemplateAttribute ( attributes = attributes ) #NEWLINE# res = self . kmip . register ( obj_type , template_attribute , res ) #NEWLINE# self . assertEqual ( ResultStatus . OPERATION_FAILED , res . result_status . value , 'result status did not return failed' ) #NEWLINE# self . assertEqual ( ResultReason . ITEM_NOT_FOUND , res . result_reason . value , 'result reason did not match' )