Testing Pylons apps

2008-01-07 Thread Mike Orr
I looked over the testing page and saw we're recommending nosetests with self.assertEqual(). That seems a bit schizophrenic since "nosetests -d" is supposed to unpack assert expressions for you, and show you the actual values of variables. However, my experience with "nosetests -d" shows it some

Re: Testing Pylons apps

2008-01-08 Thread Lawrence Oluyede
On Jan 7, 2008 10:24 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > > I looked over the testing page and saw we're recommending nosetests > with self.assertEqual(). That seems a bit schizophrenic since > "nosetests -d" is supposed to unpack assert expressions for you, and > show you the actual values

Re: Testing Pylons apps

2008-01-08 Thread Mike Orr
On Jan 8, 2008 12:17 AM, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > > > On Jan 7, 2008 10:24 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > > > > I looked over the testing page and saw we're recommending nosetests > > with self.assertEqual(). That seems a bit schizophrenic since > > "nosetests -d"

Re: Testing Pylons apps

2008-01-08 Thread Lawrence Oluyede
> How do you get it to show the variables' values then? With -d when I need to. nosetests -s -d -- Lawrence, stacktrace.it - oluyede.org - neropercaso.it "It is difficult to get a man to understand something when his salary depends on not understanding it" - Upton Sinclair --~--~-~--~

Re: Testing Pylons apps

2008-01-08 Thread Max Ischenko
On 1/8/08, Mike Orr <[EMAIL PROTECTED]> wrote: > > > Never used assertEqual with nose, HTH Same here. How do you get it to show the variables' values then? from nose.tools import eq_ eq_("one", "two") Max. --~--~-~--~~~---~--~~ You received this message beca