diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2010-12-06 14:50:48 +0100 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2010-12-06 14:50:48 +0100 |
commit | 1523695ac4370c085f89f65e329c83f51680262d (patch) | |
tree | 2160933d1263d8a12f58852a25afd8558d681cdc | |
parent | a35529dc50aa907f9f1c3a4f05158bc7f4debbc0 (diff) | |
download | libzypp-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.py | 10 |
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() |