Imported from BitBucket:
Reported by Gary Bernhardt / garybernhardt, created 6 months ago.
A method created with returns= records its calls:
>>> d = Dingus(x__returns=5)
>>> d.x()
5
>>> d.calls
[('x', (), {}, 5)]
but a method created with returner() doesn't:
>>> d = Dingus(x=returner(5))
>>> d.x()
5
>>> d.calls
[]