O'Reilly logo

Plone 3 Products Development Cookbook by Marcos F. Romero, Juan Pablo Giménez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with paster-generated test suites

Products created with paster already come with four different types of test suites ready to be used:

  • Unit test in doctest syntax
  • Unit test inside the method's docstring
  • Integration test in doctest syntax
  • Functional test in doctest syntax

The automatically generated tests module provides the necessary code to run the test cases.

Getting ready

We are going to use the same egg-structured product we created with paster in the Installation of the product recipe. If you didn't read that one, you can use the example code available for download on the Packt Publishing website.

How to do it...

Open the tests module in Products.poxContentTypes/Products/poxContentTypes to see four commented test suites:

... def test_suite(): ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required