Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
[zypp-devel] [PATCH] Add pool iterate testcase
  • From: Jan Blunck <jblunck@xxxxxxx>
  • Date: Tue, 17 Mar 2009 15:56:53 +0100
  • Message-id: <1237301813-25397-1-git-send-email-jblunck@xxxxxxx>
This is a replacement for the removed testcase from commit
1d7329e8c21e125b10b910684665af891f44af6e.

Signed-off-by: Jan Blunck <jblunck@xxxxxxx>
---
bindings/python/tests/solvable.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/bindings/python/tests/solvable.py
b/bindings/python/tests/solvable.py
index 141368f..8a7bdaa 100644
--- a/bindings/python/tests/solvable.py
+++ b/bindings/python/tests/solvable.py
@@ -39,6 +39,10 @@ class TestSequenceFunctions(unittest.TestCase):
solv = list(self.pool.providers( 'product:openSUSE' ))
assert len(solv) == 1, len(solv)

+ def test_iterate_pool(self):
+ for s in self.pool:
+ assert str(s.pool()) == str(self.pool)
+
def test_creation(self):
repo = self.pool.create_repo( 'test' )
assert repo
--
1.6.1.3

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages