[issue9731] Add ABCMeta.has_methods and tests that use it
Terry J. Reedy
report at bugs.python.org
Fri Sep 3 21:32:27 CEST 2010
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Good idea!
I see Raymond's point about the name. How about .method_check?
To me Sequence.method_check(range) means "Abstract Seqeunce class, please method-check the concrete range class."
If Sequence.register(range) is in the range source file, I would expect to find the test of the range class in test_range.
If all collection registrations were bundled together in collections.py, I think I would expect the tests to be in test_collections. But I could still be presuaded that the range method check should be in test_range where all the individual methods are (should be!) tested.
----------
nosy: +terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9731>
_______________________________________
More information about the Python-bugs-list
mailing list