Complete the test, add code to start the target
authorKlaus Kämpf <kkaempf@suse.de>
Mon, 6 Dec 2010 13:50:48 +0000 (14:50 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Mon, 6 Dec 2010 13:50:48 +0000 (14:50 +0100)
swig/python/tests/starting.py

index c97193f..91d4f4d 100644 (file)
@@ -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()