diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2015-02-05 23:00:49 -0500 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2015-02-05 23:00:49 -0500 |
commit | b5f38929f2ebf2de498c3a29268d90530a125a69 (patch) | |
tree | 884adc421c35cefa6fef017f175de9df37b42241 | |
parent | 947adf17b343a13f8ebf14401d007a8031259379 (diff) | |
download | isort-feature/fix-issue-246.tar.gz |
Add test for issue 246feature/fix-issue-246
-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 2aeb474c..de345c46 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1206,6 +1206,14 @@ def test_sticky_comments(): "from selenium.webdriver.remote.webdriver import WebDriver # noqa\n") assert SortImports(file_contents=test_input).output == test_input + test_input = ("from django import forms\n" + "# While this couples the geographic forms to the GEOS library,\n" + "# it decouples from database (by not importing SpatialBackend).\n" + "from django.contrib.gis.geos import GEOSException, GEOSGeometry\n" + "from django.utils.translation import ugettext_lazy as _\n") + assert SortImports(file_contents=test_input).output == test_input + + def test_zipimport(): """Imports ending in "import" shouldn't be clobbered""" |