diff --git a/test/test_autopep8.py b/test/test_autopep8.py index a84623a2..13cd7c4d 100755 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -2212,6 +2212,18 @@ def test_e262_more_complex(self): with autopep8_context(line) as result: self.assertEqual(fixed, result) + def test_e265(self): + line = "## comment\n123\n" + fixed = "# comment\n123\n" + with autopep8_context(line) as result: + self.assertEqual(fixed, result) + + def test_e266(self): + line = "#1 comment\n123\n" + fixed = "# 1 comment\n123\n" + with autopep8_context(line) as result: + self.assertEqual(fixed, result) + def test_e271(self): line = 'True and False\n' fixed = 'True and False\n'