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

Chapter 30. Local Utilities > Step 6: Writing Tests

Step 6: Writing Tests

Although you now have a working system, you should still write tests so that you can figure out whether all aspects of the local smiley theme are working correctly. The truly interesting part about testing any local component is the setup; when you get that right, you can quickly write the tests.

When testing local components, you must basically bring up an entire bootstrap ZODB with folders and site managers. Luckily, there are some very nice utility functions that help with this tedious setup. You can find them in zope.app.tests.setup. The following functions are commonly useful to developers:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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