# Path: tests/ex08_self_reference/models.py
# class Node(object):
#     name = related.StringField()
#     node_child = related.ChildField(node_cls, required=False)
#     node_list = related.SequenceField(node_cls, required=False)
#     node_map = related.MappingField(node_cls, "name", required=False)


import related
from .models import Node

original_json = """
{
  "name": "root",
  "node_list": [
    {
      "name": "A"
    },
    {
      "name": "B"
    }
  ],

# Path: tests/ex08_self_reference/models.py
# class Node(object):
#     name = related.StringField()
#     node_child = related.ChildField(node_cls, required=False)
#     node_list = related.SequenceField(node_cls, required=False)
#     node_map = related.MappingField(node_cls, "name", required=False)


# Path: tests/ex08_self_reference/test_self_reference.py
import related
from .models import Node


original_json = """
{
  "name": "root",
  "node_list": [
    {
      "name": "A"
    },
    {
      "name": "B"
    }
  ],

  "node_child": {