unittest in Tryton: TestCase TestCase to test small unit like a method from trytond.tests.test_tryton import ModuleTestCase Just need to set module attribute Many default tests Extend with your tests