def test_check_whitespace_after_commas(self): ex = 'line: 12, column: 8 missing whitespace after ","' result = t.check_commas('arr = [1,2]', 12) self.assertEqual(result, ex)
def test_check_good_whitespaces_commas(self): result = t.check_commas('arr = [1, 2]', 13) self.assertEqual(result, None)
def test_check_whitespace_before_commas(self): ex = 'line: 11, column: 9 whitespace before ","' result = t.check_commas('arr = [1 , 2]', 11) self.assertEqual(result, ex)