def test_optional_tables(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_unions_of_nested_tables(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_contains_tables(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
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))
def test_just_a_double_rt(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_just_a_simple_byte_enum_rt(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_lists_of_strings_rt(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_common1(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_all_scalars_with_defaults(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_optional_seq_vectors_of_strings(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_seq_vectors_of_enums(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_bytearray_tables(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_seq_vectors_of_common1s_rt(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))
def test_optional_vectors_of_scalars_rt(inst): assert inst == model_from_bytes(inst.__class__, model_to_bytes(inst))