Add test views

This commit is contained in:
Cédric Krier committed 2009-06-26 16:14:38 +02:00
1 parent 597469957f
commit 302e0eb32b
1 file changed
+7 -1
+7 -1
View File
@@ -10,7 +10,7 @@ if os.path.isdir(DIR):
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import RPCProxy, CONTEXT, SOCK
from trytond.tests.test_tryton import RPCProxy, CONTEXT, SOCK, test_view
class CompanyTestCase(unittest.TestCase):
@@ -24,6 +24,12 @@ class CompanyTestCase(unittest.TestCase):
self.employee = RPCProxy('company.employee')
self.currency = RPCProxy('currency.currency')
def test0005views(self):
'''
Test views.
'''
self.assertRaises(Exception, test_view('company'))
def test0010company(self):
'''
Create company.