summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2015-07-15 00:43:08 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2015-07-15 00:43:08 -0700
commit518ae444dd47cadc53703753d4e825d66741cfdf (patch)
treec1b5d3cd0da6850fdb008256afb1e6765c7cf12b
parent064566cc59ff7bdb8b2d71f69fd2a542606b386c (diff)
downloadisort-feature/260.tar.gz
Add test for issue 260feature/260
-rw-r--r--test_isort.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py
index dd1c3f63..fb87545b 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1450,3 +1450,7 @@ def test_comment_at_top_of_file():
"# Comment two\n"
"from django.contrib.gis.geos import GEOSException\n")
assert SortImports(file_contents=test_input).output == test_input
+
+ test_input = ("# -*- coding: utf-8 -*-\n"
+ "from django.db import models\n")
+ assert SortImports(file_contents=test_input).output == test_input