# Path: sigtools/_util.py
# def get_funcsigs():
#     def __repr__(self):
# def noop(func):
# def qualname(obj):
#     def __init__(self, *args, **kwargs):
#             def cg(func, **kwargs):
#     def __get__(self, instance, owner):
# def safe_get(obj, instance, owner):
# def iter_call(obj):
# def get_introspectable(obj, forged=True, af_hint=True, partial=True):
# def get_ast(func):
# class _Unset(object):
# class OverrideableDataDesc(object):
# UNSET = _Unset()
# 
# Path: sigtools/support.py
# def s(*args, **kwargs):
#     """Creates a signature from the given string representation of one.
# 
#     .. warning::
#         The contents of the arguments are eventually passed to `exec`.
#         Do not use with untrusted input.
# 
#     ::
# 
#         >>> from sigtools.support import s
#         >>> sig = s('a, b=2, *args, c:"annotation", **kwargs')
#         >>> sig
#         <inspect.Signature object at 0x7f15e6055550>
#         >>> print(sig)
#         (a, b=2, *args, c:'annotation', **kwargs)
#     """
#     return specifiers.signature(f(*args, **kwargs))
# 
# Path: sigtools/tests/util.py
# def conv_first_posarg(sig):
# def func_to_name(func):
# def transform_exp_sources(d, subject=None):
# def transform_real_sources(d):
#     def assertSigsEqual(self, found, expected, *args, **kwargs):
#     def assertSourcesEqual(self, found, expected, func=None, depth_order=False):
#     def downgrade_sig(self, sig):
# class SignatureTests(unittest.TestCase):


import unittest
from sigtools._util import OrderedDict as od
from sigtools.support import s
from sigtools.tests import util as tutil
              'd': ['func2'], 'e': ['func2'], 'f': ['func2'],
              '+depths': {'f1': 0, 'func2': 1} })

    def test_copy_depth(self):
        def f1():
            raise NotImplementedError
        self.assertEqual(
            tutil.transform_exp_sources(
                {'+depths': {f1: 0, 'f2': 0}, f1: 'a', 'f2': 'b'}),
            { 'a': ['f1'] , 'b': ['f2'], '+depths': {'f1': 0, 'f2': 0} })

    def test_depth_list(self):
        def f1():
            raise NotImplementedError
        self.assertEqual(
            tutil.transform_exp_sources(
                {'+depths': ['f2', f1], f1: 'a', 'f2': 'b'}),
            { 'a': ['f1'] , 'b': ['f2'], '+depths': {'f2': 0, 'f1': 1} })


class TransformRealSourcesTests(unittest.TestCase):
    def test_empty(self):
        self.assertEqual(tutil.transform_real_sources({}), {})

    def test_tf(self):
        def f1():
            raise NotImplementedError
        def f2():
            raise NotImplementedError
        self.assertEqual(

# Path: sigtools/_util.py
# def get_funcsigs():
#     def __repr__(self):
# def noop(func):
# def qualname(obj):
#     def __init__(self, *args, **kwargs):
#             def cg(func, **kwargs):
#     def __get__(self, instance, owner):
# def safe_get(obj, instance, owner):
# def iter_call(obj):
# def get_introspectable(obj, forged=True, af_hint=True, partial=True):
# def get_ast(func):
# class _Unset(object):
# class OverrideableDataDesc(object):
# UNSET = _Unset()
# 
# Path: sigtools/support.py
# def s(*args, **kwargs):
#     """Creates a signature from the given string representation of one.
# 
#     .. warning::
#         The contents of the arguments are eventually passed to `exec`.
#         Do not use with untrusted input.
# 
#     ::
# 
#         >>> from sigtools.support import s
#         >>> sig = s('a, b=2, *args, c:"annotation", **kwargs')
#         >>> sig
#         <inspect.Signature object at 0x7f15e6055550>
#         >>> print(sig)
#         (a, b=2, *args, c:'annotation', **kwargs)
#     """
#     return specifiers.signature(f(*args, **kwargs))
# 
# Path: sigtools/tests/util.py
# def conv_first_posarg(sig):
# def func_to_name(func):
# def transform_exp_sources(d, subject=None):
# def transform_real_sources(d):
#     def assertSigsEqual(self, found, expected, *args, **kwargs):
#     def assertSourcesEqual(self, found, expected, func=None, depth_order=False):
#     def downgrade_sig(self, sig):
# class SignatureTests(unittest.TestCase):


# Path: sigtools/tests/test_testutil.py
import unittest
from sigtools._util import OrderedDict as od
from sigtools.support import s
from sigtools.tests import util as tutil

              'd': ['func2'], 'e': ['func2'], 'f': ['func2'],
              '+depths': {'f1': 0, 'func2': 1} })

    def test_copy_depth(self):
        def f1():
            raise NotImplementedError
        self.assertEqual(
            tutil.transform_exp_sources(
                {'+depths': {f1: 0, 'f2': 0}, f1: 'a', 'f2': 'b'}),
            { 'a': ['f1'] , 'b': ['f2'], '+depths': {'f1': 0, 'f2': 0} })

    def test_depth_list(self):
        def f1():
            raise NotImplementedError
        self.assertEqual(
            tutil.transform_exp_sources(
                {'+depths': ['f2', f1], f1: 'a', 'f2': 'b'}),
            { 'a': ['f1'] , 'b': ['f2'], '+depths': {'f2': 0, 'f1': 1} })


class TransformRealSourcesTests(unittest.TestCase):
    def test_empty(self):
        self.assertEqual(tutil.transform_real_sources({}), {})

    def test_tf(self):
        def f1():
            raise NotImplementedError
        def f2():
            raise NotImplementedError
        self.assertEqual(

            tutil.transform_real_sources({'a': [f1, f2], 'b': [f1], 'c': [f2]}),