'Test the hint-giving functionality of FormulaResponse'

def test_hint(self):

    sample_dict = {'x': ((-10), 10), 'y': ((-10), 10)}
    hints = [('x    +    3*y', 'y_coefficient', 'Check    the    coefficient    of    y'), ('2*y', 'missing_x', 'Try    including    the    variable    x')]
    problem = self.build_problem(sample_dict=sample_dict, num_samples=10, tolerance=0.01, answer='x+2*y', hints=hints)
    input_dict = {'1_2_1': 'x    +    2*y    +    y'}
    correct_map = problem.grade_answers(input_dict)
    self.assertEquals(correct_map.get_hint('1_2_1'), 'Check    the    coefficient    of    y')
    input_dict = {'1_2_1': '2*y'}
    correct_map = problem.grade_answers(input_dict)
    self.assertEquals(correct_map.get_hint('1_2_1'), 'Try    including    the    variable    x')
