doubles
doubles copied to clipboard
Base TestCase
I'm thinking of having a doubles.TestCase with helper method _patch_class with the following usage:
class MyTest(doubles.TestCase):
def setUp(self):
_class, _instance = self._path_class(<target>)
This helper method will simplify patching target by getting it's class and instance automatically.
What you think?