def METHOD_NAME(self):
    def foo(a):
        return {"a": a * 2}
    d = {"a": 2}
    dres = adaptor(foo, {"a": "a"})(d)
    self.assertEqual(dres["a"], 4)
    d = {"b": 2}
    dres = adaptor(foo, {"a": "b"}, {"b": "a"})(d)
    self.assertEqual(dres["b"], 4)