'Ensure that, on receipt of a score_(re)set signal from the Submissions API
that has an invalid user ID, the courseware model does not generate a
signal.'

@ddt.data([submissions_score_set_handler, SUBMISSION_SET_KWARGS], [submissions_score_reset_handler, SUBMISSION_RESET_KWARGS])
@ddt.unpack
def test_score_set_bad_user(self, handler, kwargs):

    self.get_user_mock = self.setup_patch('lms.djangoapps.grades.signals.handlers.user_by_anonymous_id', None)
    handler(None, **kwargs)
    self.signal_mock.assert_not_called()
