@property
    def is_success(self):
        """Returns whether or not the response was successful"""
        if not hasattr(self.response, 'json'):
            raise AvalaraException('No response found')
        if self.response.json() not in 'ResultCode':
            raise AvalaraException('is_success not applicable for this response')
        cond = self.response.json().get('ResultCode', BaseResponse.ERROR) == BaseResponse.SUCCESS
        return True if cond else False
dataset/ETHPy150Open activefrequency/pyavatax/pyavatax/base.py/BaseResponse.is_success/swapped operands of `not in`