import unittest


def make_suite(tc_class, config, root_tmpdir, ports_sock):
    """Compose test suite based on test class names."""
    testloader = unittest.TestLoader()
    testnames = testloader.getTestCaseNames(tc_class)
    suite = unittest.TestSuite()
    for name in testnames:
        suite.addTest(tc_class(name, config, root_tmpdir, ports_sock))
    return suite