'Tests a function that unexpectedly accepts **kwargs.'

def test_unexpected_kwargs(self):

    def f(**kwargs):
        pass
    with self.assertRaises(UnexpectedKwargs):
        verify_callable_argspec(f, expect_kwargs=False)
