Source code for odoo_xmlrpc_twisted.test.test_get_installed_languages

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


import unittest
import os
import sys
import configparser

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


# 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 get_installed_languages import get_installed_languages


[docs] class test_get_installed_languages(ReadOnlyOdooTestCase): """ Class for the test cases of the module "get_installed_languages" """
[docs] def test_cases(self): """ test cases of the module "get_installed_languages" """ self.assertTrue(get_installed_languages())
if __name__ == "__main__": unittest.main()