• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 35. Changing Traversal Behavior > Step 4: Creating and Running Function...

Step 4: Creating and Running Functional Tests

Before you let the traverser code be run in the wild, you should test it some more in a fairly contained environment. The following functional test is pretty straightforward and mimics the unit tests.

You need to open a file called ftests.py and add the following to it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint