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
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
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