[issue18365] Idle: mock Text class and test thereof

Terry J. Reedy report at bugs.python.org
Fri Jul 5 08:49:07 CEST 2013


New submission from Terry J. Reedy:

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.

----------
assignee: terry.reedy
components: IDLE
messages: 192327
nosy: Todd.Rovito, philwebster, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: Idle: mock Text class and test thereof
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18365>
_______________________________________


More information about the Python-bugs-list mailing list