trytond-product_template_code/tests/test_product_template_code.py

35 lines
1013 B
Python
Raw Normal View History

2014-03-31 14:45:35 +02:00
#!/usr/bin/env python
2014-11-07 14:33:01 +01:00
# This file is part product_template_code module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
2014-03-31 14:45:35 +02:00
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
test_depends
from trytond.transaction import Transaction
class ProductTemplateCodeTestCase(unittest.TestCase):
2014-11-07 14:33:01 +01:00
'Test Product Template Code module'
2014-03-31 14:45:35 +02:00
def setUp(self):
trytond.tests.test_tryton.install_module('product_template_code')
def test0005views(self):
2014-11-07 14:33:01 +01:00
'Test views'
2014-03-31 14:45:35 +02:00
test_view('product_template_code')
def test0006depends(self):
2014-11-07 14:33:01 +01:00
'Test depends'
2014-03-31 14:45:35 +02:00
test_depends()
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
ProductTemplateCodeTestCase))
return suite
if __name__ == '__main__':
unittest.TextTestRunner(verbosity=2).run(suite())