def test_roundtrip(self): schema_class = avro_schema_parser.parse_schema_string(self.avsc) schema_struct = json.loads(self.avsc) regenerated_struct = avro.get_schema_dict(schema_class) self.assertEqual(schema_struct, regenerated_struct)
def test_two_way_equivalence(self): schema_class = avro_schema_parser.parse_schema_string( supported_avro_schema) recreated_avsc = avro.get_schema_dict(schema_class) self.recursive_compare(json.loads(supported_avro_schema), recreated_avsc)
def test_two_way_equivalence(self): schema_class = avro_schema_parser.parse_schema_string(supported_avro_schema) recreated_avsc = avro.get_schema_dict(schema_class) self.recursive_compare(json.loads(supported_avro_schema), recreated_avsc)