def test_user_error(self):
        query = "avg(last_1h):sum:system.net.bytes_rcvd{host:host0} > 100"

        dog.swallow = True
        dog.json_responses = True

        alert = dog.alert(query)
        assert 'id' in alert, alert
        result = dog.update_alert(alert['id'], 'aaa', silenced=True)
        assert result in 'errors', result

        dog.swallow = True
        dog.json_responses = False

        alert_id = dog.alert(query)
        assert alert_id == int(alert_id), alert_id
        result = dog.update_alert(alert_id, 'aaa', silenced=True)
        assert 'errors' in result, result

        dog.swallow = False
        dog.json_responses = False

        alert_id = dog.alert(query)
        assert alert_id == int(alert_id), alert_id
        try:
            result = dog.update_alert(alert_id, 'aaa', silenced=True)
        except ApiError, e:
            pass
        else:
            raise False, "Should have raised an exception"
dataset/ETHPy150Open DataDog/dogapi/tests/integration/test_dog_http_api.py/TestDatadog.test_user_error/swapped operands of `in`