# Path: tests/context.py

# 
# Path: tests/support/decorators.py
# def load_expected_result():
#     def case_decorator(test):
#         case_filename = test.__name__.split("test_")[-1]
# 
#         @wraps(test)
#         def decorated_test(*args, **kwargs):
#             result_path = os.path.join(RESULTS_DIR, case_filename + ".json")
# 
#             with io.open(result_path, encoding='utf8') as result_file:
#                 expected_result = json.load(result_file)
# 
#             kwargs["expected_result"] = expected_result
#             test(*args, **kwargs)
# 
#         return decorated_test
# 
#     return case_decorator
# 
# RESULTS_DIR = os.path.join("tests", "results")


import os.path
import nose
import requests_mock
import vcr
    import mock
from collections import OrderedDict
from pprint import pprint
from nose.tools import assert_false, assert_equal
from nose.tools import assert_list_equal, assert_raises
from six import iteritems
    from unittest import mock
from .context import pydatajson
from .support.decorators import load_expected_result, RESULTS_DIR
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests del modulo pydatajson."""

from __future__ import print_function, unicode_literals, with_statement



try:
except ImportError:

my_vcr = vcr.VCR(path_transformer=vcr.VCR.ensure_suffix('.yaml'),
                 cassette_library_dir=os.path.join("tests", "cassetes"),
                 record_mode='once')


class TestDataJsonTestCase(object):
    SAMPLES_DIR = os.path.join("tests", "samples")

# Path: tests/context.py

# 
# Path: tests/support/decorators.py
# def load_expected_result():
#     def case_decorator(test):
#         case_filename = test.__name__.split("test_")[-1]
# 
#         @wraps(test)
#         def decorated_test(*args, **kwargs):
#             result_path = os.path.join(RESULTS_DIR, case_filename + ".json")
# 
#             with io.open(result_path, encoding='utf8') as result_file:
#                 expected_result = json.load(result_file)
# 
#             kwargs["expected_result"] = expected_result
#             test(*args, **kwargs)
# 
#         return decorated_test
# 
#     return case_decorator
# 
# RESULTS_DIR = os.path.join("tests", "results")


# Path: tests/test_core.py
import os.path
import nose
import requests_mock
import vcr
    import mock
from collections import OrderedDict
from pprint import pprint
from nose.tools import assert_false, assert_equal
from nose.tools import assert_list_equal, assert_raises
from six import iteritems
    from unittest import mock
from .context import pydatajson
from .support.decorators import load_expected_result, RESULTS_DIR

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests del modulo pydatajson."""

from __future__ import print_function, unicode_literals, with_statement



try:
except ImportError:

my_vcr = vcr.VCR(path_transformer=vcr.VCR.ensure_suffix('.yaml'),
                 cassette_library_dir=os.path.join("tests", "cassetes"),
                 record_mode='once')


class TestDataJsonTestCase(object):
    SAMPLES_DIR = os.path.join("tests", "samples")

    RESULTS_DIR = RESULTS_DIR