Esempio n. 1
0
def test_optional_tables(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 2
0
def test_unions_of_nested_tables(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 3
0
def test_contains_tables(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 4
0
def test_just_an_optional_string_rt(inst):
    # Remove then we update Flatbuffers.
    if not inst.id:
        inst.id = None
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 5
0
def test_just_a_double_rt(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 6
0
def test_just_a_simple_byte_enum_rt(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 7
0
def test_lists_of_strings_rt(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 8
0
def test_common1(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 9
0
def test_all_scalars_with_defaults(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 10
0
def test_optional_seq_vectors_of_strings(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 11
0
def test_seq_vectors_of_enums(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 12
0
def test_bytearray_tables(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 13
0
def test_seq_vectors_of_common1s_rt(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
Esempio n. 14
0
def test_optional_vectors_of_scalars_rt(inst):
    assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))