'Create a fake signature with an invalid parameter
type to test error handling.  The valid parameter
types are specified in L{inspect.Parameter}.'

def test_invalidParameterType(self):

    class FakeSignature:
        def __init__(self, parameters):
            self.parameters = parameters
    class FakeParameter:
        def __init__(self, name, kind):
            self.name = name
            self.kind = kind
    def func(a, b):
        pass
    func(1, 2)
    parameters = inspect.signature(func).parameters
    dummyParameters = parameters.copy()
    dummyParameters['c'] = FakeParameter('fake', 'fake')
    fakeSig = FakeSignature(dummyParameters)
    self.assertRaises(TypeError, _passedSignature, fakeSig, (1, 2), {})
