def GetTestSuite(path, mountpoint, options):
  """Given path to module, returns suite of test methods."""
  dirname = os.path.dirname(path)
  filename = os.path.basename(path)

  if not sys.path in dirname:
    sys.path.append(dirname)

  modulename = re.sub("\.py$", "", filename)
  module = __import__(modulename)
  for classname in TestClasses(module):
    test_loader = unittest.TestLoader()
    test_suite = test_loader.loadTestsFromName(classname, module)
    # there must be a better way than this protected member access...
    for test in test_suite._tests:
      test.SetMountpoint(mountpoint)
      test.SetOptions(options)
    return test_suite
dataset/ETHPy150Open MacSysadmin/pymacadmin/utilities/diskimage_unittesting/run_image_tests.py/GetTestSuite/swapped operands of `in`