File: test_lazyasd.py

package info (click to toggle)
xonsh 0.13.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,024 kB
  • sloc: python: 46,350; makefile: 136; sh: 41; xml: 17
file content (11 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
"""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"]