def test_passed_unspecifiedKeyword(self):
        """
        L{passed} raises a L{TypeError} if a keyword argument not
        present in the function's declaration is passed.
        """
        def func(a):
            pass
        self.assertRaises(TypeError, self.checkPassed, func, 1, z=2)

        L{passed} raises a L{TypeError} if a keyword argument not
        present in the function's declaration is passed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_deprecate.py