test_update_dbentry: test "move" command more
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Sep 2012 03:59:13 +0000 (20:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Sep 2012 03:59:13 +0000 (20:59 -0700)
pym/portage/tests/update/test_update_dbentry.py

index ac16a8ae374deddb5f59117b89efbfd5140aa6a2..40633180916433bde86627c37840fe7321e67dd6 100644 (file)
@@ -17,6 +17,25 @@ class UpdateDbentryTestCase(TestCase):
 
        def testUpdateDbentryTestCase(self):
                cases = (
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "1",
+                               "  dev-libs/A:0  ", "  dev-libs/B:0  "),
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "1",
+                               "  >=dev-libs/A-1:0  ", "  >=dev-libs/B-1:0  "),
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "5_pre2",
+                               "  dev-libs/A:0/1=[foo]  ", "  dev-libs/B:0/1=[foo]  "),
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "5_pre2",
+                               "  dev-libs/A:0/1[foo]  ", "  dev-libs/B:0/1[foo]  "),
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "5_pre2",
+                               "  dev-libs/A:0/0[foo]  ", "  dev-libs/B:0/0[foo]  "),
+
+                       (("move", Atom("dev-libs/A"), Atom("dev-libs/B")), "5_pre2",
+                               "  dev-libs/A:0=[foo]  ", "  dev-libs/B:0=[foo]  "),
+
                        (("slotmove", Atom("dev-libs/A"), "0", "1"), "1",
                                "  dev-libs/A:0  ", "  dev-libs/A:1  "),