Skip to content

Commit

Permalink
add tests of simple case for e265 and e266
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Oct 30, 2021
1 parent f192115 commit 577774f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_autopep8.py
Expand Up @@ -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'
Expand Down

0 comments on commit 577774f

Please sign in to comment.