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

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

    worker.remove_nipsa.delay.assert_called_once_with("test_id")
Save in Xcode 3.2 compatible (new) format
dataset/ETHPy150Open hypothesis/h/h/nipsa/test/logic_test.py/test_remove_nipsa_schedules_task_when_user_does_not_exist--crossover with--dataset/ETHPy150Open kivy/kivy-ios/tools/external/mod_pbxproj.py/XcodeProject.save_new_format