[py-dev] keyword selection
Ian Bicking
ianb at colorstudy.com
Fri May 13 21:29:54 CEST 2005
I was a little surprised with the keyword "worse" didn't match the test
"test_worse_upload". I'd have expected "test_" to be redundant. But
I'd probably expect "upload" to also match that test; I think I'd
normally expect that it would match "words", with words indicated by _'s
or mixed case. And actually I can imagine that for this test I'm
writing -- I have several tests for CSV uploads, and several for uploads
in general, and it seems natural to use the keyword "csv" for one and
"upload" for the other.
But this is just selecting a single test in a larger module; I haven't
tried it for larger sets of tests, so it might feel more natural there.
Either way requiring "test_" seems unnecessary.
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the py-dev
mailing list