On 15/07/2008, Raymond Hettinger <python at rcn.com> wrote: > > ``set_up(…)`` > > Replaces ``setUp(…)`` > > > . . > > ``tear_down(…)`` > > Replaces ``tearDown(…)`` > > > > Am I the only one who finds this sort of excessive pep-8 underscoring to be > horrorific? No. > Nobody I know spells setup and teardown as two words. I dread using the > module with these new names. Underscores are not fun to type. They create a > weird_mental_pause when reading them. I agree. The java-esque setUp and tearDown are (in my view) ugly, but set_up and tear_down are as bad. +1 for setup and teardown. +1 also for thinking a *lot* harder about naming, and not just going with phrases_joined_up_with_underscores, or phrasesWithNoSpacesAndFunnyCapitalisation. There are certainly issues with the simple assert expression approach, but ugliness and unreadability aren't two of them. Paul.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4