Re: Unit test failing please help

2011-08-26 Thread Tim Wintle
On Fri, 2011-08-26 at 08:35 -0700, lblake wrote: > Hi I am new to python I am at bit lost as to why my unit test is > failing below is the code and the unit test: > > class Centipede(object): > legs, stomach This doesn't do what you think it does. "legs, stomach" is a statement and is not de

Re: Unit test failing please help

2011-08-26 Thread John Gordon
In lblake writes: > Hi I am new to python I am at bit lost as to why my unit test is > failing below is the code and the unit test: > class Centipede(object): > legs, stomach You aren't assigning any values to "legs" or "stomach" here. From your later code, it seems like you intend these

Unit test failing please help

2011-08-26 Thread lblake
Hi I am new to python I am at bit lost as to why my unit test is failing below is the code and the unit test: class Centipede(object): legs, stomach def __init__(self): def __str__(self): return ','.join(self.stomach) def __call__(self,*args): [self.stomach.appe