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

Chapter 13. Writing New Content Objects > Step 4: Writing Unit Tests

Step 4: Writing Unit Tests

There are two ways unit tests can be written in Zope 3. The first one is through special TestCase classes, using the unittest package, which is modeled after JUnit. The second technique is to write tests inside doc strings, which are commonly known as doc tests.

Late in the development of Zope 3, using doc tests became the standard way of writing tests. (For philosophical and technical differences between the two approaches, see Part VII, “Writing Tests,” especially Chapter 40, “Writing Basic Unit Tests,” and Chapter 41, “Doc Tests: Example-Driven Unit Tests.”)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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