def test_check_good_variable(self): result = t.check_variables(' a = 7', 6) self.assertEqual(result, None)
def test_check_bad_variable_O(self): ex = 'line: 4, column: 3 name O is bad name' result = t.check_variables(' O = 6', 4) self.assertEqual(result, ex)
def test_check_bad_variable_l(self): ex = 'line: 5, column: 3 name l is bad name' result = t.check_variables(' l = 7', 5) self.assertEqual(result, ex)
def test_check_bad_variable_I(self): ex = 'line: 3, column: 3 name I is bad name' result = t.check_variables(' I = 5', 3) self.assertEqual(result, ex)