summaryrefslogtreecommitdiff
path: root/pactest/tests/remove060.py
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2008-07-08 10:30:28 +0200
committerDan McGee <dan@archlinux.org>2008-07-13 09:14:36 -0500
commit1d9d47d62c8dab07bbd411ed0c1919ad4149cd43 (patch)
treef9cd46d762d6728c98ed8837d1b702d532ed12ff /pactest/tests/remove060.py
parentb196cc43a50e6fd1dfa9425d7ff8a9302e6fec84 (diff)
downloadpacman-1d9d47d62c8dab07bbd411ed0c1919ad4149cd43.tar.xz
New remove060.py pactest
This is a group removal test. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/remove060.py')
-rw-r--r--pactest/tests/remove060.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pactest/tests/remove060.py b/pactest/tests/remove060.py
new file mode 100644
index 00000000..7f705519
--- /dev/null
+++ b/pactest/tests/remove060.py
@@ -0,0 +1,19 @@
+self.description = "Remove a group"
+
+lp1 = pmpkg("pkg1")
+lp1.groups = ["grp"]
+
+lp2 = pmpkg("pkg2")
+
+lp3 = pmpkg("pkg3")
+lp3.groups = ["grp"]
+
+for p in lp1, lp2, lp3:
+ self.addpkg2db("local", p);
+
+self.args = "-R grp"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=pkg1")
+self.addrule("PKG_EXIST=pkg2")
+self.addrule("!PKG_EXIST=pkg3")