diff options
| -rw-r--r-- | test_isort.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py index 7fde1b43..6e65b581 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1194,3 +1194,10 @@ def test_from_ending(): test_input = "from foo import get_foo_from, get_foo\n" expected_output = "from foo import get_foo, get_foo_from\n" assert SortImports(file_contents=test_input).output == expected_output + + +def test_from_first(): + """Tests the setting from_first works correctly""" + test_input = "from os import path\nimport os\n" + assert SortImports(file_contents=test_input).output == test_input + |
