summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_functional.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py
index 6e454cfef3..595479a503 100644
--- a/tests/utils_tests/test_functional.py
+++ b/tests/utils_tests/test_functional.py
@@ -184,6 +184,11 @@ class FunctionalTests(SimpleTestCase):
with self.assertRaisesMessage(TypeError, msg):
Foo().cp
+ def test_lazy_add(self):
+ lazy_4 = lazy(lambda: 4, int)
+ lazy_5 = lazy(lambda: 5, int)
+ self.assertEqual(lazy_4() + lazy_5(), 9)
+
def test_lazy_equality(self):
"""
== and != work correctly for Promises.