def METHOD_NAME(
    self,
    pex_args,  # type: Iterable[str]
    expected_sources,  # type: Iterable[str]
    offset=None,  # type: Optional[str]
):
    # type: (...) -> None
    pex = os.path.join(self.base_dir, "pex")
    args = ["-o", pex]
    args.extend(pex_args)
    run_pex_command(args=args, cwd=self.create(offset=offset)).assert_success()
    with open_zip(pex) as zf:
        actual_sources = [
            f
            for f in zf.namelist()
            if not f.startswith((layout.BOOTSTRAP_DIR, layout.DEPS_DIR, "__pex__"))
            and f not in (layout.PEX_INFO_PATH, "__main__.py")
        ]
    assert sorted(expected_sources) == sorted(actual_sources)