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