def test_pack_str():
    assert AMF3String.pack(STR, []) == STR_BYTES
def test_size_str():
    assert AMF3String.size(STR, []) == STR_SIZE
def test_read_str(fd):
    assert AMF3String.read(fd, []) == STR
def test_pack_str_cache():
    cache = []
    assert AMF3String.pack(STR, cache) == STR_BYTES
    assert AMF3String.pack(STR, cache) == STR_BYTES_CACHE
def test_pack_str():
    assert AMF3String.pack(STR, []) == STR_BYTES
def test_read_str(fd):
    assert AMF3String.read(fd, []) == STR
def test_size_str():
    assert AMF3String.size(STR, []) == STR_SIZE
def test_pack_str_cache():
    cache = []
    assert AMF3String.pack(STR, cache) == STR_BYTES
    assert AMF3String.pack(STR, cache) == STR_BYTES_CACHE