# Path: snapshottest/snapshot.py
# class Snapshot(OrderedDict):
#     pass
# 
# Path: snapshottest/generic_repr.py
# class GenericRepr(object):
#     def __init__(self, representation):
#         self.representation = representation
# 
#     def __repr__(self):
#         return "GenericRepr({})".format(repr(self.representation))
# 
#     def __eq__(self, other):
#         return (
#             isinstance(other, GenericRepr)
#             and self.representation == other.representation
#         )
# 
#     def __hash__(self):
#         return hash(self.representation)
# 
#     @staticmethod
#     def from_value(value):
#         representation = repr(value)
#         # Remove the hex id, if found.
#         representation = representation.replace(hex(id(value)), "0x100000000")
#         return GenericRepr(representation)
# 
# Path: snapshottest/file.py
# class FileSnapshot(object):
#     def __init__(self, path):
#         """
#         Create a file snapshot pointing to the specified `path`. In a snapshot, `path`
#         is considered to be relative to the test module's "snapshots" folder. (This is
#         done to prevent ugly path manipulations inside the snapshot file.)
#         """
#         self.path = path
# 
#     def __repr__(self):
#         return "FileSnapshot({})".format(repr(self.path))
# 
#     def __eq__(self, other):
#         return self.path == other.path


from snapshottest import GenericRepr, Snapshot
from snapshottest.file import FileSnapshot

snapshots['test_file 1'] = FileSnapshot('snap_test_demo/test_file 1.txt')

snapshots['test_multiple_files 1'] = FileSnapshot('snap_test_demo/test_multiple_files 1.txt')

snapshots['test_multiple_files 2'] = FileSnapshot('snap_test_demo/test_multiple_files 2.txt')

snapshots['test_nested_objects dict'] = {
    'key': GenericRepr('#')
}

snapshots['test_nested_objects defaultdict'] = {
    'key': [
        GenericRepr('#')
    ]
}

snapshots['test_nested_objects list'] = [
    GenericRepr('#')
]

snapshots['test_nested_objects tuple'] = (
    GenericRepr('#')
,)

snapshots['test_nested_objects set'] = set([
    GenericRepr('#')
])

snapshots['test_nested_objects frozenset'] = frozenset([

# Path: snapshottest/snapshot.py
# class Snapshot(OrderedDict):
#     pass
# 
# Path: snapshottest/generic_repr.py
# class GenericRepr(object):
#     def __init__(self, representation):
#         self.representation = representation
# 
#     def __repr__(self):
#         return "GenericRepr({})".format(repr(self.representation))
# 
#     def __eq__(self, other):
#         return (
#             isinstance(other, GenericRepr)
#             and self.representation == other.representation
#         )
# 
#     def __hash__(self):
#         return hash(self.representation)
# 
#     @staticmethod
#     def from_value(value):
#         representation = repr(value)
#         # Remove the hex id, if found.
#         representation = representation.replace(hex(id(value)), "0x100000000")
#         return GenericRepr(representation)
# 
# Path: snapshottest/file.py
# class FileSnapshot(object):
#     def __init__(self, path):
#         """
#         Create a file snapshot pointing to the specified `path`. In a snapshot, `path`
#         is considered to be relative to the test module's "snapshots" folder. (This is
#         done to prevent ugly path manipulations inside the snapshot file.)
#         """
#         self.path = path
# 
#     def __repr__(self):
#         return "FileSnapshot({})".format(repr(self.path))
# 
#     def __eq__(self, other):
#         return self.path == other.path


# Path: examples/pytest/snapshots/snap_test_demo.py
from snapshottest import GenericRepr, Snapshot
from snapshottest.file import FileSnapshot


snapshots['test_file 1'] = FileSnapshot('snap_test_demo/test_file 1.txt')

snapshots['test_multiple_files 1'] = FileSnapshot('snap_test_demo/test_multiple_files 1.txt')

snapshots['test_multiple_files 2'] = FileSnapshot('snap_test_demo/test_multiple_files 2.txt')

snapshots['test_nested_objects dict'] = {
    'key': GenericRepr('#')
}

snapshots['test_nested_objects defaultdict'] = {
    'key': [
        GenericRepr('#')
    ]
}

snapshots['test_nested_objects list'] = [
    GenericRepr('#')
]

snapshots['test_nested_objects tuple'] = (
    GenericRepr('#')
,)

snapshots['test_nested_objects set'] = set([
    GenericRepr('#')
])

snapshots['test_nested_objects frozenset'] = frozenset([

    GenericRepr('#')