'Test that if variable are given in option response then correct map must contain answervariable value.'

def test_variable_options(self):

    script = textwrap.dedent('                                a    =    1000\n                                b    =    a*2\n                                c    =    a*3\n                                ')
    problem = self.build_problem(options=['$a', '$b', '$c'], correct_option='$a', script=script)
    input_dict = {'1_2_1': '1000'}
    correct_map = problem.grade_answers(input_dict)
    self.assertEqual(correct_map.get_correctness('1_2_1'), 'correct')
    self.assertEqual(correct_map.get_property('1_2_1', 'answervariable'), '$a')
