def METHOD_NAME(self):
    def foo(a, b=2):
        return a * b
    d = {"a": 5}
    dres = adaptor(foo, "c")(d)
    self.assertEqual(dres["c"], 10)
    d = {"b": 5}
    with self.assertRaises(TypeError):
        dres = adaptor(foo, "c")(d)