# coding: utf-8

import unittest

def add(suite, module):
    suite.addTest(unittest.TestLoader().loadTestsFromModule(module))

def test():
    # TODO: automagicaly import modules test/*_test.py
    from tests import soapdispatcher_test
    from tests import simplexmlelement_test
    from tests import issues_tests
    from tests import afip_tests
    from tests import licencias_tests
    from tests import trazamed_tests

    suite = unittest.TestSuite()
    
    add(suite, soapdispatcher_test)
    add(suite, simplexmlelement_test)
    add(suite, issues_tests)
    add(suite, afip_tests)
    add(suite, licencias_tests)
    add(suite, trazamed_tests)
    
    unittest.TextTestRunner(verbosity=2).run(suite)

if __name__ == '__main__':
    test()
