code: def TextToBuddyStatus(self, Text):
          
          conv = {'UNKNOWN': enums.budUnknown,
                  'NEVER_BEEN_FRIEND': enums.budNeverBeenFriend,
                  'DELETED_FRIEND': enums.budDeletedFriend,
                  'PENDING_AUTHORIZATION': enums.budPendingAuthorization,
                  'FRIEND': enums.budFriend}
          try:
              return self._TextTo('bud', conv[Text.upper()])
          except KeyError:
              raise ValueError('Bad text')
docs: Returns buddy status code.
  
          :Parameters:
            Text : unicode
              Text, one of 'UNKNOWN', 'NEVER_BEEN_FRIEND', 'DELETED_FRIEND', 'PENDING_AUTHORIZATION',
              'FRIEND'.
  
          :return: Buddy status.
          :rtype: `enums`.bud*