On Saturday, January 11, 2014 11:34:30 PM UTC-5, Roy Smith wrote:
> In article ,
>
> "W. Trevor King" wrote:
>
>
>
> > On Sat, Jan 11, 2014 at 08:00:05PM -0800, CraftyTech wrote:
>
> > > I'm finding it hard to use unittest in a for loop. Perhaps something
> > > like:
>
> > >
>
> > > for
In article ,
"W. Trevor King" wrote:
> On Sat, Jan 11, 2014 at 08:00:05PM -0800, CraftyTech wrote:
> > I'm finding it hard to use unittest in a for loop. Perhaps something like:
> >
> > for val in range(25):
> > self.assertEqual(val,5,"not equal)
> >
> > The loop will break after the first
On Sat, Jan 11, 2014 at 08:00:05PM -0800, CraftyTech wrote:
> I'm finding it hard to use unittest in a for loop. Perhaps something like:
>
> for val in range(25):
> self.assertEqual(val,5,"not equal)
>
> The loop will break after the first failure. Anyone have a good
> approach for this? ple
CraftyTech writes:
> I'm trying parametize my unittest so that I can re-use over and over,
> perhaps in a for loop.
The ‘testscenarios’ https://pypi.python.org/pypi/testscenarios>
library allows you to define a set of data scenarios on your
FooBarTestCase and have all the test case functions in