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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18365>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to