projects
/
platform
/
upstream
/
libzypp-bindings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35529d
)
Complete the test, add code to start the target
author
Klaus Kämpf
<kkaempf@suse.de>
Mon, 6 Dec 2010 13:50:48 +0000
(14:50 +0100)
committer
Klaus Kämpf
<kkaempf@suse.de>
Mon, 6 Dec 2010 13:50:48 +0000
(14:50 +0100)
swig/python/tests/starting.py
patch
|
blob
|
history
diff --git
a/swig/python/tests/starting.py
b/swig/python/tests/starting.py
index
c97193f
..
91d4f4d
100644
(file)
--- a/
swig/python/tests/starting.py
+++ b/
swig/python/tests/starting.py
@@
-8,10
+8,12
@@
sys.path.insert(0, cwd + "/../../../build/swig/python")
class TestSequenceFunctions(unittest.TestCase):
- def test
load
ing(self):
+ def test
start
ing(self):
import zypp
- zypp = zypp.ZYppFactory.instance().getZYpp()
- assert zypp
-
+ Z = zypp.ZYppFactory.instance().getZYpp()
+ assert Z
+ Z.initializeTarget( zypp.Pathname("/") )
+ Z.target().load();
+
if __name__ == '__main__':
unittest.main()