summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2017-05-12 19:12:42 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2017-05-12 19:12:42 -0700
commitea120a8f92ab2dc452e3ad22635777606ea2a2f6 (patch)
treee61163f79c54a96704b3b2bdb93e4beb0faf964f
parentc452c7445ff9b5b437c2709a695f0113b95da424 (diff)
downloadisort-ea120a8f92ab2dc452e3ad22635777606ea2a2f6.tar.gz
Fix test definition
-rw-r--r--test_isort.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test_isort.py b/test_isort.py
index 6522f754..079261a7 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1934,7 +1934,16 @@ def test_long_single_line():
output = SortImports(file_contents="from ..views import ("
" _a,"
"_xxxxxx_xxxxxxx_xxxxxxxx_xxx_xxxxxxx as xxxxxx_xxxxxxx_xxxxxxxx_xxx_xxxxxxx)",
- line_lenght=79).output
+ line_length=79).output
for line in output.split('\n'):
assert len(line) <= 79
+
+ output = SortImports(file_contents="from ..views import ("
+ " _a,"
+ "_xxxxxx_xxxxxxx_xxxxxxxx_xxx_xxxxxxx as xxxxxx_xxxxxxx_xxxxxxxx_xxx_xxxxxxx)",
+ line_length=79, combine_as_imports=True).output
+ for line in output.split('\n'):
+ assert len(line) <= 79
+
+