Skip to content

Commit

Permalink
Add test with indented import
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Oct 9, 2015
1 parent 353ed0d commit 0b27929
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test_autoflake.py
Expand Up @@ -151,6 +151,21 @@ def test_filter_code(self):
import os
import re
os.foo()
""")))

def test_filter_code_with_conditional(self):
self.assertEqual(
"""\
import os
if True:
pass
os.foo()
""",
''.join(autoflake.filter_code("""\
import os
if True:
import re
os.foo()
""")))

def test_filter_code_with_from(self):
Expand Down

0 comments on commit 0b27929

Please sign in to comment.