'Test that errors other than the expected kinds give an appropriate message.
See also `test_submit_problem_error` for the "expected kinds" or errors.'

def test_submit_problem_other_errors(self):

    module = CapaFactory.create(attempts=1)
    module.system.user_is_staff = False
    module.system.DEBUG = True
    with patch('capa.capa_problem.LoncapaProblem.grade_answers') as mock_grade:
        error_msg = u'Superterrible    error    happened:    \u2620'
        mock_grade.side_effect = Exception(error_msg)
        get_request_dict = {CapaFactory.input_key(): '3.14'}
        result = module.submit_problem(get_request_dict)
    self.assertIn(error_msg, result['success'])
