Ejemplo n.º 1
0
def test_jsarray_output():
    """Test that the output function for JSArray doesn't bork."""

    ja = JSArray(traverser=traverser)
    ja.elements = [None, None]
    repr(ja)  # Used to throw tracebacks.
    ja.as_primitive()  # Also used to throw tracebacks.
Ejemplo n.º 2
0
def test_jsarray_output():
    """Test that the output function for JSArray doesn't bork."""

    ja = JSArray(traverser=traverser)
    ja.elements = [None, None]
    repr(ja)  # Used to throw tracebacks.
    ja.as_primitive()  # Also used to throw tracebacks.