unit test results so far

Finding files... ['/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py'] ... done Importing test modules ... done. testAllMowed (lawn.LawnTest) ... ERROR testCatOnLawn (lawn.LawnTest) ... ok testCatScaredOfGardener (lawn.LawnTest) ... ERROR testCatScaredOfMower (lawn.LawnTest) ... ERROR testCrapOnLawn (lawn.LawnTest) ... ERROR testGardenerPickedUpCrap (lawn.LawnTest) ... ERROR testMowedArea (lawn.LawnTest) ... ERROR testMowedCrap (lawn.LawnTest) ... ERROR testMowedGardener (lawn.LawnTest) ... ERROR testMowedLane (lawn.LawnTest) ... ERROR testMowerMovedToNextLane (lawn.LawnTest) ... ERROR testPosnAccess (lawn.LawnTest) ... ok testSelectCatDest (lawn.LawnTest) ... ERROR ====================================================================== ERROR: testAllMowed (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 129, in testAllMowed while lawn.items["mower"].crossing_lanes(lawn): AttributeError: Mower instance has no attribute 'crossing_lanes' ====================================================================== ERROR: testCatScaredOfGardener (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 110, in testCatScaredOfGardener lawn.items["cat"] = Cat(expectedCatStartPosn) NameError: global name 'expectedCatStartPosn' is not defined ====================================================================== ERROR: testCatScaredOfMower (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 103, in testCatScaredOfMower lawn.items["cat"] = Cat(expectedCatStartPosn) NameError: global name 'expectedCatStartPosn' is not defined ====================================================================== ERROR: testCrapOnLawn (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 81, in testCrapOnLawn lawn.items["cat"].crap(lawn) AttributeError: Cat instance has no attribute 'crap' ====================================================================== ERROR: testGardenerPickedUpCrap (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 185, in testGardenerPickedUpCrap lawn.items["cat"] = Cat(expectedCatStartPosn) NameError: global name 'expectedCatStartPosn' is not defined ====================================================================== ERROR: testMowedArea (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 117, in testMowedArea self.assertEqual(expectedLawnRect, lawn.rect) NameError: global name 'expectedLawnRect' is not defined ====================================================================== ERROR: testMowedCrap (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 147, in testMowedCrap lawn.items["cat"] = Cat(expectedCatStartPosn) NameError: global name 'expectedCatStartPosn' is not defined ====================================================================== ERROR: testMowedGardener (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 157, in testMowedGardener lawn.items["mower"].rect.move_ip(expectedGardenerStartPosn) NameError: global name 'expectedGardenerStartPosn' is not defined ====================================================================== ERROR: testMowedLane (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 164, in testMowedLane while lawn.items["mower"].mowing_lane(lawn): AttributeError: Mower instance has no attribute 'mowing_lane' ====================================================================== ERROR: testMowerMovedToNextLane (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 174, in testMowerMovedToNextLane while lawn.items["mower"].mowing_lane(lawn): AttributeError: Mower instance has no attribute 'mowing_lane' ====================================================================== ERROR: testSelectCatDest (lawn.LawnTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/simon/workspace/getoffmylawn/src/gamelib/lawn.py", line 94, in testSelectCatDest lawn.setCatDest() AttributeError: Lawn instance has no attribute 'setCatDest' ---------------------------------------------------------------------- Ran 13 tests in 0.002s FAILED (errors=11)

(log in to comment)

Comments

I see CatOnLawn and PosnAccess already work! So would you recommend TDD for other contestants?