code: def create_case(self, name, email, subject, description, businessImpact,
                      priority, phone):
          
  
          if not('@' in parseaddr(email)[1]):
              raise ValueError('invalid email: {}'.format(email))
          if '' == name or name is None:
              raise ValueError('empty name')
          if '' == subject or subject is None:
              raise ValueError('empty subject')
          if '' == description or description is None:
              raise ValueError('empty description')
          if '' == businessImpact or businessImpact is None:
              raise ValueError('empty business impact')
          if priority is None:
              raise ValueError('Ensure the priority is from the set of '
                               'known priorities')
          if '' == phone or phone is None:
              raise ValueError('empty phone')
  
          try:
              r = requests.post(self.url, data={
                  'orgid': self.orgId,
                  'recordType': self.recordType,
                  'name': name,
                  'email': email,
                  'subject': subject,
                  'description': description,
                  self.BUSINESS_IMPACT: businessImpact,
                  'priority': priority,
                  'phone': phone,
                  'external': 1
                  }, timeout=self.timeout)
              r.raise_for_status()
          except Timeout:
              message = 'Request timed out: {url} timeout: {timeout}'
              message = message.format(url=self.url, timeout=self.timeout)
              log.error(message)
              raise ServerError(message)
          except RequestException as err:
              log.info('cannot create case: {}'.format(err))
              raise ServerError(
                  'cannot create case: {}'.format(err))
docs: Send a case creation to SalesForces to create a ticket.
  
          @param name of the person creating the case.
          @param email of the person creating the case.
          @param subject of the case.
          @param description of the case.
          @param businessImpact of the case.
          @param priority of the case.
          @param phone of the person creating the case.
          @return Nothing if this is ok.
          @raise ServerError when something goes wrong.
          @raise ValueError when data passed in are invalid