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

Chapter 42. Writing Functional Tests > Testing ZPT Page Views

Testing ZPT Page Views

Now that you know how the BrowserTestCase class extends the FunctionalTestCase class (which in turn extends the normal unittest.TestCase class), you can use it to write some functional tests for the Add, Edit, and Index views of the ZPT Page content type.

You need to create a file called test_zptpage.py and add the following functional testing code to it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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