diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2017-05-24 22:06:19 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2017-05-24 22:06:19 -0700 |
commit | d59f5909154ffc969ea91d01094d0d10b3f41171 (patch) | |
tree | 725658ed7395eeb3529ed46535a8973be1734871 | |
parent | 55c7b384ee78df6215ec3f4100ed2ee3d8872946 (diff) | |
download | isort-feature/fix-issue-466.tar.gz |
Add failing test case to illustrate issuefeature/fix-issue-466
-rw-r--r-- | test_isort.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py index fbbe0db3..f3f3284e 100644 --- a/test_isort.py +++ b/test_isort.py @@ -2000,3 +2000,11 @@ def test_alias_using_paren_issue_466(): expected_output = ('from django.db.backends.mysql.base import (\n' ' DatabaseWrapper as MySQLDatabaseWrapper)\n') assert SortImports(file_contents=test_input, line_length=50, use_parentheses=True).output == expected_output + + + test_input = 'from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper\n' + expected_output = ('from django.db.backends.mysql.base import (\n' + ' DatabaseWrapper as MySQLDatabaseWrapper\n' + ')\n') + assert SortImports(file_contents=test_input, line_length=50, multi_line_output=5).output == expected_output + |