xonsh/tests/test_lazyasd.py
2016-06-27 20:53:10 -04:00

11 lines
214 B
Python

"""Tests lazy and self destruictive objects."""
from xonsh.lazyasd import LazyObject
#
# LazyObject Tests
#
def test_lazyobject_getitem():
lo = LazyObject(lambda: {'x': 1}, {}, 'lo')
assert 1 == lo['x']