import unittest


def GetParameterizedTestSuite(klass, **kwargs):
  """Make test suite parameterized.

  Args:
    klass: a subclass of unittest.TestCase.
    kwargs: arguments given to klass.

  Returns:
    an instance of unittest.TestSuite for |klass|.
  """
  test_loader = unittest.TestLoader()
  test_names = test_loader.getTestCaseNames(klass)
  suite = unittest.TestSuite()
  for name in test_names:
    suite.addTest(klass(name, **kwargs))
  return suite