From 518ae444dd47cadc53703753d4e825d66741cfdf Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Wed, 15 Jul 2015 00:43:08 -0700 Subject: Add test for issue 260 --- test_isort.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1