'Test for correct interpretation of scientific notation'

def test_exponential_answer(self):

    answer = 50
    correct_responses = ['50', '50.0', '5e1', '5e+1', '50e0', '50.0e0', '500e-1']
    incorrect_responses = ['', '3.9', '4.1', '0', '5.01e1']
    for input_str in correct_responses:
        result = calc.evaluator({}, {}, input_str)
        fail_msg = "Expected    '{0}'    to    equal    {1}".format(input_str, answer)
        self.assertEqual(answer, result, msg=fail_msg)
    for input_str in incorrect_responses:
        result = calc.evaluator({}, {}, input_str)
        fail_msg = "Expected    '{0}'    to    not    equal    {1}".format(input_str, answer)
        self.assertNotEqual(answer, result, msg=fail_msg)
