@mock.patch("h.nipsa.models.NipsaUser")
def test_remove_nipsa_does_not_delete_user_that_does_not_exist(NipsaUser):
    NipsaUser.get_by_userid.return_value = None
    request = mock.Mock()

    logic.remove_nipsa(request=request, userid="test_id")

    assert not request.db.delete.called
Ensure that defaults (1, MAX_DEPTH) are set correctly.
dataset/ETHPy150Open hypothesis/h/h/nipsa/test/logic_test.py/test_remove_nipsa_does_not_delete_user_that_does_not_exist--crossover with--dataset/ETHPy150Open Workiva/furious/furious/tests/test_async.py/TestAsync.test_update_recursion_level_defaults