# Path: sigtools/tests/sphinxextfixt.py
# def inner(a, b):
#     def __init__(self):
#     def outer(self, c, *args, **kwargs):
# def kwo(a, b, c=1, d=2):
# def outer(c, *args, **kwargs):
# class AClass(object):


import unittest
from sigtools.tests import sphinxextfixt
            from sigtools import sphinxext




app = object()


class SphinxExtTests(unittest.TestCase):
    def setUp(self):
        try:
        except SyntaxError: # sphinx does not work on py32
            raise unittest.SkipTest("Sphinx could not be imported.")
        else:
            self.sphinxext = sphinxext

    def test_forge(self):
        r = self.sphinxext.process_signature(
            app, 'function', 'sigtools.tests.sphinxextfixt.outer',
            sphinxextfixt.outer, {}, '(c, *args, **kwargs)', None)
        self.assertEqual(('(c, a, b)', ''), r)

    def test_method_forge(self):
        r = self.sphinxext.process_signature(
            app, 'method', 'sigtools.tests.sphinxextfixt.AClass.outer',
            sphinxextfixt.AClass.outer, {}, '(c, *args, **kwargs)', None)
        self.assertEqual(('(c, a, b)', ''), r)

    def test_modifiers(self):
        r = self.sphinxext.process_signature(
            app, 'function', 'sigtools.tests.sphinxextfixt.kwo',

# Path: sigtools/tests/sphinxextfixt.py
# def inner(a, b):
#     def __init__(self):
#     def outer(self, c, *args, **kwargs):
# def kwo(a, b, c=1, d=2):
# def outer(c, *args, **kwargs):
# class AClass(object):


# Path: sigtools/tests/test_sphinxext.py
import unittest
from sigtools.tests import sphinxextfixt
            from sigtools import sphinxext





app = object()


class SphinxExtTests(unittest.TestCase):
    def setUp(self):
        try:
        except SyntaxError: # sphinx does not work on py32
            raise unittest.SkipTest("Sphinx could not be imported.")
        else:
            self.sphinxext = sphinxext

    def test_forge(self):
        r = self.sphinxext.process_signature(
            app, 'function', 'sigtools.tests.sphinxextfixt.outer',
            sphinxextfixt.outer, {}, '(c, *args, **kwargs)', None)
        self.assertEqual(('(c, a, b)', ''), r)

    def test_method_forge(self):
        r = self.sphinxext.process_signature(
            app, 'method', 'sigtools.tests.sphinxextfixt.AClass.outer',
            sphinxextfixt.AClass.outer, {}, '(c, *args, **kwargs)', None)
        self.assertEqual(('(c, a, b)', ''), r)

    def test_modifiers(self):
        r = self.sphinxext.process_signature(
            app, 'function', 'sigtools.tests.sphinxextfixt.kwo',

            sphinxextfixt.AClass.outer, {}, '(a, b, c=1, d=2)', None)