OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 #This file is part of Tryton. The COPYRIGHT file at the top level of |
| 3 #this repository contains the full copyright notices and license terms. |
| 4 |
| 5 import sys, os |
| 6 DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, |
| 7 '..', '..', '..', '..', '..', 'trytond'))) |
| 8 if os.path.isdir(DIR): |
| 9 sys.path.insert(0, os.path.dirname(DIR)) |
| 10 |
| 11 import unittest |
| 12 import trytond.tests.test_tryton |
| 13 from trytond.tests.test_tryton import test_view |
| 14 |
| 15 |
| 16 class SaleOpportunityTestCase(unittest.TestCase): |
| 17 ''' |
| 18 Test SaleOpportunity module. |
| 19 ''' |
| 20 |
| 21 def setUp(self): |
| 22 trytond.tests.test_tryton.install_module('sale_opportunity') |
| 23 |
| 24 def test0005views(self): |
| 25 ''' |
| 26 Test views. |
| 27 ''' |
| 28 self.assertRaises(Exception, test_view('sale_opportunity')) |
| 29 |
| 30 def suite(): |
| 31 suite = trytond.tests.test_tryton.suite() |
| 32 suite.addTests(unittest.TestLoader().loadTestsFromTestCase( |
| 33 SaleOpportunityTestCase)) |
| 34 return suite |
| 35 |
| 36 if __name__ == '__main__': |
| 37 unittest.TextTestRunner(verbosity=2).run(suite()) |
OLD | NEW |