Skip to content

Commit

Permalink
Expand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Apr 11, 2017
1 parent 16bac0a commit 71fa850
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ def test_filter_code_with_from(self):
x = 1
""")))

def test_filter_code_with_not_from(self):
self.assertEqual(
"""\
pass
x = 1
""",
''.join(autoflake.filter_code("""\
import frommer
x = 1
""",
remove_all_unused_imports=True)))

def test_filter_code_should_avoid_inline_except(self):
line = """\
try: from zap import foo
Expand Down

0 comments on commit 71fa850

Please sign in to comment.