diff options
-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 a0a0dac5..bb302bc5 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1238,3 +1238,11 @@ def test_top_comments(): "from django.db import models\n" "from django.utils.encoding import python_2_unicode_compatible\n") assert SortImports(file_contents=test_input).output == test_input + + test_input = ("# Comment\n" + "import sys\n") + assert SortImports(file_contents=test_input).output == test_input + + test_input = ("# -*- coding\n" + "import sys\n") + assert SortImports(file_contents=test_input).output == test_input |