void () { final PyRequirement requirement1 = fromLine("social-auth-app-django==2.0.*"); final PyRequirement requirement2 = fromLine("social-auth-app-django~=2.0.0"); final PyPackage pkg = new PyPackage("social-auth-app-django", "2.0.0"); assertEquals(pkg, requirement1.match(singletonList(pkg))); assertEquals(pkg, requirement2.match(singletonList(pkg))); }