diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2017-06-03 18:47:38 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2017-06-03 18:47:38 -0700 |
commit | 57c634390a44f5d38219d7475accc565eb310866 (patch) | |
tree | 83d00a8ca0cf049b1fb42ca24b92e00d4bade0e8 | |
parent | f417fa6e8dc0eb1eae6b19cd3c7526ab8ff17e90 (diff) | |
download | isort-57c634390a44f5d38219d7475accc565eb310866.tar.gz |
Add failing test to demonstrate issuefeature/fix-issue-557
-rw-r--r-- | test_isort.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py index 14cf5d7e..a7c0e4b1 100644 --- a/test_isort.py +++ b/test_isort.py @@ -2136,6 +2136,8 @@ def test_future_below_encoding_issue_545(): def test_no_extra_lines_issue_557(): """Test to ensure no extra lines are prepended""" - test_input = 'import os\n' + test_input = ('import os\n' + '\n' + 'from scrapy.core.downloader.handlers.http import HttpDownloadHandler, HTTPDownloadHandler\n') assert SortImports(file_contents=test_input, force_alphabetical_sort=True, force_sort_within_sections=True).output == test_input |