test_match_from_list: test slot-abi more
authorZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2012 01:01:29 +0000 (18:01 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Jun 2012 01:01:29 +0000 (18:01 -0700)
pym/portage/tests/dep/test_match_from_list.py

index d6649ad7f6a2224b4d8215bd942b24ff6342004e..e80345dc6622eb4c42d388a49c259f24b321cd65 100644 (file)
@@ -108,6 +108,14 @@ class Test_match_from_list(TestCase):
                        ("virtual/ffmpeg:*", [Package("=virtual/ffmpeg-0.10.3:0/53")], ["virtual/ffmpeg-0.10.3"] ),
                        ("virtual/ffmpeg:0*", [Package("=virtual/ffmpeg-0.10.3:0/53")], ["virtual/ffmpeg-0.10.3"] ),
                        ("virtual/ffmpeg:0", [Package("=virtual/ffmpeg-0.10.3:0/53")], ["virtual/ffmpeg-0.10.3"] ),
+
+                       ("sys-libs/db:4.8/4.8", [Package("=sys-libs/db-4.8.30:4.8")], ["sys-libs/db-4.8.30"] ),
+                       ("sys-libs/db:4.8/4.8=", [Package("=sys-libs/db-4.8.30:4.8")], ["sys-libs/db-4.8.30"] ),
+                       ("sys-libs/db:4.8=", [Package("=sys-libs/db-4.8.30:4.8")], ["sys-libs/db-4.8.30"] ),
+                       ("sys-libs/db:4.8*", [Package("=sys-libs/db-4.8.30:4.8")], ["sys-libs/db-4.8.30"] ),
+                       ("sys-libs/db:*", [Package("=sys-libs/db-4.8.30:4.8")], ["sys-libs/db-4.8.30"] ),
+                       ("sys-libs/db:4.8/0", [Package("=sys-libs/db-4.8.30:4.8")], [] ),
+                       ("sys-libs/db:4.8/0=", [Package("=sys-libs/db-4.8.30:4.8")], [] ),
                )
 
                for atom, cpv_list, expected_result in tests: