summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2014-07-03 13:34:20 +0300
committerPanu Matilainen <pmatilai@redhat.com>2014-07-03 13:41:03 +0300
commit43c4478d6c9c75a2518b2e25b3f2a80415d5e008 (patch)
treec6feb97e17492010ad42d04999741115b82fc44b /tests
parent708fb8c35eff3acacf2b7d197f9ef59fb9551e15 (diff)
downloadrpm-43c4478d6c9c75a2518b2e25b3f2a80415d5e008.tar.gz
Add testcase for db iterator wildcard matching
Diffstat (limited to 'tests')
-rw-r--r--tests/rpmpython.at11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rpmpython.at b/tests/rpmpython.at
index 3c63911a3..727835cfe 100644
--- a/tests/rpmpython.at
+++ b/tests/rpmpython.at
@@ -213,6 +213,17 @@ for h in ts.dbMatch('packages', ix):
RPMPY_CHECK([
ts = rpm.ts()
+mi = ts.dbMatch()
+mi.pattern('name', rpm.RPMMIRE_DEFAULT, 'f*')
+for h in mi:
+ myprint(h['nevra'])
+],
+[foo-1.0-1.noarch
+],
+[])
+
+RPMPY_CHECK([
+ts = rpm.ts()
for h in ts.dbMatch('name'):
myprint(h['nevra'])
],