On Sat, Feb 27, 2010 at 04:47:41PM -0800, iain duncan wrote: > > On Feb 27, 3:48 pm, Marius Gedminas <[email protected]> wrote: > > On Sat, Feb 27, 2010 at 01:47:41PM -0800, iain duncan wrote: > > > What I have done is add a method called setup to the same > > > TestControllers that get made when you make a controller. In a normal > > > nose test class, this gets run prior to each test, in this case it > > > doesn't ever get run. > > > > Python is case-sensitive. You need to call the method setUp. > > Thanks! Now out of curiosity can anyone tell my why in a regular nose > test, you can call it setup, but not in this case?
AFAIU nose applies different rules for classes that inherit unittest.TestCase: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/writing_tests.html#test-classes Marius Gedminas -- Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. -- Stan Kelly-Bootle
signature.asc
Description: Digital signature
