Source code for odoo_xmlrpc_twisted.test.test_test_odoo_xmlrpc_server

"""
test program for module :func:`odoo_xmlrpc_twisted.functions.test_odoo_xmlrpc_server`
based on the "unittest" functionality
"""


import unittest

# Import base test case for shared Odoo connection
from odoo_xmlrpc_twisted.test.base_test_case import ReadOnlyOdooTestCase
import os
import sys


# as this program is in the folder "test",
# import the module to test from the parent directory
current = 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'))
from test_odoo_xmlrpc_server import test_odoo_xmlrpc_server


[docs] class test_test_odoo_xmlrpc_server(ReadOnlyOdooTestCase): """ Class for the test cases of the module "test_odoo_xmlrpc_server" """
[docs] def test_cases(self): """ test cases of the module "test_odoo_xmlrpc_server" """ self.assertEqual(test_odoo_xmlrpc_server(), 'True')
if __name__ == "__main__": unittest.main()