'Test that staff may enter in a complex number as the answer.'

@mock.patch('capa.responsetypes.log')
def test_staff_inputs_bad_syntax(self, mock_log):

    staff_ans = 'clearly    bad    syntax    )[+1e'
    problem = self.build_problem(answer=staff_ans, tolerance=0.001)
    msg = 'There    was    a    problem    with    the    staff    answer    to    this    problem'
    with self.assertRaisesRegexp(StudentInputError, msg):
        self.assert_grade(problem, '1+j', 'correct')
    mock_log.debug.assert_called_once_with("Content    error--answer    '%s'    is    not    a    valid    number", staff_ans)
