Source code for odoo_xmlrpc_twisted.test.test_test_twisted_connection
"""test program for module :func:`odoo_xmlrpc_twisted.functions.test_twisted_connection`based on the "unittest" functionality."""importunittest# Import base test case for shared Odoo connectionfromodoo_xmlrpc_twisted.test.base_test_caseimportReadOnlyOdooTestCaseimportosimportsys# as this program is in the folder "test",# import the module to test from the parent directorycurrent=os.path.dirname(os.path.realpath(__file__))parent_directory=os.path.dirname(current)sys.path.append(parent_directory)sys.path.append(os.path.join(parent_directory,'functions'))fromtest_twisted_connectionimporttest_twisted_connection
[docs]classtest_test_twisted_connection(ReadOnlyOdooTestCase):""" Class for the test cases of the module "test_twisted_connection" """
[docs]deftest_cases(self):""" test cases of the module "test_twisted_connection" """self.assertEqual(test_twisted_connection(),'True')