Add test views

This commit is contained in:
Cédric Krier
2009-06-27 10:56:00 +02:00
parent 3eef22ff12
commit a44062babb
+7 -1
View File
@@ -11,7 +11,7 @@ if os.path.isdir(DIR):
import unittest
import trytond.tests.test_tryton
import trytond.modules.company.tests
from trytond.tests.test_tryton import RPCProxy, CONTEXT, SOCK
from trytond.tests.test_tryton import RPCProxy, CONTEXT, SOCK, test_view
class AccountTestCase(unittest.TestCase):
@@ -22,6 +22,12 @@ class AccountTestCase(unittest.TestCase):
def setUp(self):
trytond.tests.test_tryton.install_module('account')
def test0005views(self):
'''
Test views.
'''
self.assertRaises(Exception, test_view('account'))
def suite():
return unittest.TestLoader().loadTestsFromTestCase(AccountTestCase)