Esempio n. 1
0
def test_read_empty(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == EMPTY
Esempio n. 2
0
def test_size_primitive():
    assert AMF3ArrayPacker.size(PRIMITIVE, [], [], []) == PRIMITIVE_SIZE
Esempio n. 3
0
def test_size_associative():
    assert AMF3ArrayPacker.size(ASSOCIATIVE, [], [], []) == ASSOCIATIVE_SIZE
Esempio n. 4
0
def test_pack_associative():
    assert AMF3ArrayPacker.pack(ASSOCIATIVE, [], [], []) == ASSOCIATIVE_BYTES
Esempio n. 5
0
def test_size_empty():
    assert AMF3ArrayPacker.size(EMPTY, [], [], []) == EMPTY_SIZE
def test_pack_primitive():
    assert AMF3ArrayPacker.pack(PRIMITIVE, [], [], []) == PRIMITIVE_BYTES
Esempio n. 7
0
def test_pack_primitive():
    assert AMF3ArrayPacker.pack(PRIMITIVE, [], [], []) == PRIMITIVE_BYTES
def test_read_primitive(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == PRIMITIVE
def test_read_associative(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == ASSOCIATIVE
Esempio n. 10
0
def test_size_associative():
    assert AMF3ArrayPacker.size(ASSOCIATIVE, [], [], []) == ASSOCIATIVE_SIZE
Esempio n. 11
0
def test_read_empty(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == EMPTY
Esempio n. 12
0
def test_size_primitive():
    assert AMF3ArrayPacker.size(PRIMITIVE, [], [], []) == PRIMITIVE_SIZE
Esempio n. 13
0
def test_size_empty():
    assert AMF3ArrayPacker.size(EMPTY, [], [], []) == EMPTY_SIZE
Esempio n. 14
0
def test_pack_associative():
    assert AMF3ArrayPacker.pack(ASSOCIATIVE, [], [], []) == ASSOCIATIVE_BYTES
Esempio n. 15
0
def test_read_primitive(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == PRIMITIVE
Esempio n. 16
0
def test_pack_empty():
    assert AMF3ArrayPacker.pack(EMPTY, [], [], []) == EMPTY_BYTES
Esempio n. 17
0
def test_read_associative(fd):
    assert AMF3ArrayPacker.read(fd, [], [], []) == ASSOCIATIVE
Esempio n. 18
0
def test_pack_empty():
    assert AMF3ArrayPacker.pack(EMPTY, [], [], []) == EMPTY_BYTES