summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_async.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_async.py b/tests/test_async.py
index f7e2792..5f6e073 100644
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -579,3 +579,7 @@ class TestAsyncForLoop(object):
def test_bare_async(self, test_env_async):
t = test_env_async.from_string('{% extends "header" %}')
assert t.render(foo=42) == "[42|23]"
+
+ def test_awaitable_property_slicing(self, test_env_async):
+ t = test_env_async.from_string('{% for x in a.b[:1] %}{{ x }}{% endfor %}')
+ assert t.render(a=dict(b=[1, 2, 3])) == "1"