Message160878
| Author |
r.david.murray |
| Recipients |
Brian.Jones, ezio.melotti, michael.foord, patricksmith, r.david.murray |
| Date |
2012年05月16日.16:18:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337185105.06.0.293562027986.issue14819@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I agree that testing for subclass is a rather specialized thing, and thus should be defined by a project that needs it. Normal API-centric unit tests shouldn't, IMO, care whether X is a subclass of Y. If you are using it to write a failing unit test to "drive" refactoring from one class to another, that is, I think, a very good example of a specialized use case (one I would certainly never use, for example) and you should just put it in your own project test codebase. |
|