#!/usr/pkg/bin/python2.7
# coding: utf-8

"""
    python-creole unittests
    ~~~~~~~~~~~~~~~~~~~~~~~

    :copyleft: 2008-2011 by python-creole team, see AUTHORS for more details.
    :license: GNU GPL v3 or above, see LICENSE for more details.
"""

from __future__ import division, absolute_import, print_function, unicode_literals

import unittest

from creole.tests import all_tests


def get_test_suite():
    """
    return the unittest.TestSuite with all python-creole unittests for setup.py
    """
    suite = unittest.findTestCases(all_tests)
    return suite


def run_unittests():
    """
    run all python-creole unittests with TextTestRunner
    """
    suite = get_test_suite()
    runner = unittest.TextTestRunner()
    runner.run(suite)


if __name__ == '__main__':
    run_unittests()

