# Copyright 2013-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage.tests import TestCase from portage.tests.resolver.ResolverPlayground import (ResolverPlayground, ResolverPlaygroundTestCase) class OrChoicesTestCase(TestCase): def testOrChoices(self): ebuilds = { "dev-lang/vala-0.20.0" : { "EAPI": "5", "SLOT": "0.20" }, "dev-lang/vala-0.18.0" : { "EAPI": "5", "SLOT": "0.18" }, #"dev-libs/gobject-introspection-1.36.0" : { # "EAPI": "5", # "RDEPEND" : "!=dev-lang/ocaml-3.10.2:= " "|| ( dev-ml/labltk:= =dev-lang/ocaml-3.10.2:= " "|| ( dev-ml/labltk:= =dev-lang/ocaml-4.02:=", "RDEPEND": ">=dev-lang/ocaml-4.02:=", }, } installed = { "dev-lang/ocaml-4.01.0" : { "EAPI": "5", "SLOT": "0/4.01.0", }, "dev-ml/lablgl-1.05" : { "EAPI": "5", "DEPEND": (">=dev-lang/ocaml-3.10.2:0/4.01.0= " "|| ( dev-ml/labltk:= =dev-lang/ocaml-3.10.2:0/4.01.0= " "|| ( dev-ml/labltk:=