This function (and make_registration just above it) need documentation. The variable names are also very confusing. If these are used as fake callbacks, please use "fake" in their name somewhere so it's clear. Similar issues with tests in landscape/ui/model/registration/tests/test_proxy.py
Looks good! +1
I just have a few issues with names/docs in the tests:
[1] self, suceed): this):
303 + def make_disabling(
304 +
305 + def _do_disabling(
306 + return suceed
307 +
308 + return _do_disabling
309 +
This function (and make_registration just above it) need documentation. The variable names are also very confusing. If these are used as fake callbacks, please use "fake" in their name somewhere so it's clear. Similar issues with tests in landscape/ ui/model/ registration/ tests/test_ proxy.py
[2] self, suceed):
303 + def make_disabling(
Small typo, should be succeed.
[3] l(True, self.mechanism. disable( ))
324 + self.assertEqua
Should use assertTrue( self.mechanism. disable( )) and assertFalse() in the test below.