Message192327
test_rstrip2.patch contain a Text class to be added to mock_tk.py. The purpose of a mock class is to imitate another class with respect to certain behaviors. The way to verify that is does that is to run the same set of tests for those behaviors with both. This is similar in idea and will be the same in execution as running the same set of tests with a Python-coded module and a c-coded accelerator version of at least some functions of the module. The trick is to do this without code duplication is write a mixin class with the tests and derive two testcase classes using the mixin. |
|
Date |
User |
Action |
Args |
2013-07-05 06:49:07 | terry.reedy | set | recipients:
+ terry.reedy, Todd.Rovito, philwebster |
2013-07-05 06:49:06 | terry.reedy | set | messageid: <1373006946.99.0.696971871982.issue18365@psf.upfronthosting.co.za> |
2013-07-05 06:49:06 | terry.reedy | link | issue18365 messages |
2013-07-05 06:49:06 | terry.reedy | create | |
|