summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2010-12-06 14:50:48 +0100
committerKlaus Kämpf <kkaempf@suse.de>2010-12-06 14:50:48 +0100
commit1523695ac4370c085f89f65e329c83f51680262d (patch)
tree2160933d1263d8a12f58852a25afd8558d681cdc
parenta35529dc50aa907f9f1c3a4f05158bc7f4debbc0 (diff)
downloadlibzypp-bindings-1523695ac4370c085f89f65e329c83f51680262d.tar.gz
libzypp-bindings-1523695ac4370c085f89f65e329c83f51680262d.tar.bz2
libzypp-bindings-1523695ac4370c085f89f65e329c83f51680262d.zip
Complete the test, add code to start the target
-rw-r--r--swig/python/tests/starting.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/swig/python/tests/starting.py b/swig/python/tests/starting.py
index c97193f..91d4f4d 100644
--- 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 testloading(self):
+ def teststarting(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()