import unittest


def getSuiteCases(suite):
    """
        Returns individual test from a test suite.
    """
    tests = []

    if isinstance(suite, unittest.TestCase):
        tests.append(suite)
    elif isinstance(suite, unittest.suite.TestSuite):
        for item in suite:
            tests.extend(getSuiteCases(item))

    return tests