void () { final String name = "MyProject1"; final String version = "1.2"; final String linePrefix = name + " >= " + version; final List<PyRequirementVersionSpec> versionSpecs = singletonList(pyRequirementVersionSpec(GTE, release(version))); final List<String> installOptions1 = Arrays.asList(linePrefix, "--global-option=\"--no-user-cfg\"", "--install-option=\"--prefix='/usr/local'\"", "--install-option=\"--no-compile\""); final String line1 = linePrefix + " " + "--global-option=\"--no-user-cfg\" " + "--install-option=\"--prefix='/usr/local'\" " + "--install-option=\"--no-compile\""; assertEquals(new PyRequirementImpl(name, versionSpecs, installOptions1, ""), fromLine(line1)); final List<String> installOptions2 = Arrays.asList(linePrefix, "--install-option=\"--install-scripts=/usr/local/bin\""); final String line2 = linePrefix + " --install-option=\"--install-scripts=/usr/local/bin\""; assertEquals(new PyRequirementImpl(name, versionSpecs, installOptions2, ""), fromLine(line2)); }