Closed GoogleCodeExporter closed 9 years ago
I think you want (inside use) to do API.a = 2
If your "use" function does not take self as a parameter and accesses "API"
directly, then you can do mock.use = use.
Otherwise you probably need to subclass B - so you can override use - and wrap
that instead. Alternatively use patch to put your temporary use implementation
onto the B class.
Original comment by fuzzyman
on 19 Mar 2013 at 12:27
Original issue reported on code.google.com by
dim...@gmail.com
on 20 Dec 2012 at 7:23