def test_read_anonymous(fd):
    val = AMF3ObjectPacker.read(fd, [], [], [])

    assert val == ANONYMOUS
def test_read_named_type(fd):
    val = AMF3ObjectPacker.read(fd, [], [], [])

    assert val.foo == NAMED_TYPE.foo
    assert val.baz == NAMED_TYPE.baz