Part of lp.code.model.tests.test_codeimportjob View In Hierarchy
To test that an operation creates CodeImportEvent objects, create an NewEvent object, perform the operation, then test the value of the NewEvents instance.
Doctests should print the NewEvent object, and unittests should iterate over it.