'Test if python script can be used to generate answers'

def test_script(self):

    script = "calculated_ans    =    'x+x'"
    sample_dict = {'x': ((-10), 10)}
    problem = self.build_problem(sample_dict=sample_dict, num_samples=10, tolerance=0.01, answer='$calculated_ans', script=script)
    self.assert_grade(problem, '2*x', 'correct')
    self.assert_grade(problem, '3*x', 'incorrect')
