disabled broken dump tests
authorMichael Andres <ma@suse.de>
Sun, 19 Jan 2014 15:29:35 +0000 (16:29 +0100)
committerMichael Andres <ma@suse.de>
Sun, 19 Jan 2014 15:29:35 +0000 (16:29 +0100)
It's IMO not bindings task to test and fail if libzypp reformats
output or adds new attributes.

swig/python/tests/repoinfo.py

index 8fdc3b0..ef7f545 100644 (file)
@@ -54,17 +54,20 @@ class RepoInfoTestCase(unittest.TestCase):
         baseurls = self.info.baseUrls()
         assert len(baseurls) == 1
 
-    def testDump(self):
-        out = self.info.dump()
-        assert len(out) > 300, 'Invalid output length %d' % len(out)
+    # ma: disabled broken dump tests. It's IMO not bindings task to test and fail
+    #     if libzypp reformats output or adds new attributes.
 
-    def testDumpIni(self):
-        out = self.info.dumpAsIni()
-        assert len(out) == 208, 'Invalid output length %d' % len(out)
+    #def testDump(self):
+        #out = self.info.dump()
+        #assert len(out) > 300, 'Invalid output length %d' % len(out)
 
-    def testDumpXML(self):
-        out = self.info.dumpAsXML()
-        assert len(out) == 253, 'Invalid output length %d' % len(out)
+    #def testDumpIni(self):
+        #out = self.info.dumpAsIni()
+        #assert len(out) == 208, 'Invalid output length %d' % len(out)
+
+    #def testDumpXML(self):
+        #out = self.info.dumpAsXML()
+        #assert len(out) == 253, 'Invalid output length %d' % len(out)
 
 if __name__ == "__main__":
     unittest.main()