void () { final String name = "django_compressor"; final String version = "dev"; final String line = name + "==" + version; final List<PyRequirementVersionSpec> versionSpecs = singletonList(pyRequirementVersionSpec(STR_EQ, version)); assertEquals(new PyRequirementImpl(name, versionSpecs, singletonList(line), ""), fromLine(line)); }