diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2015-07-15 00:43:08 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2015-07-15 00:43:08 -0700 |
commit | 518ae444dd47cadc53703753d4e825d66741cfdf (patch) | |
tree | c1b5d3cd0da6850fdb008256afb1e6765c7cf12b | |
parent | 064566cc59ff7bdb8b2d71f69fd2a542606b386c (diff) | |
download | isort-518ae444dd47cadc53703753d4e825d66741cfdf.tar.gz |
Add test for issue 260feature/260
-rw-r--r-- | test_isort.py | 4 |
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 |