search for: test900pythondict

Displaying 2 results from an estimated 2 matches for "test900pythondict".

2016 Feb 12
2
[PATCH] python: tests: use more targeted assert*() functions/checks
...self.assertIsNotNone (dom) print ("temporary domain %s is running" % self.domname) diff --git a/python/t/900-python-dict.py b/python/t/900-python-dict.py index 7d78e86..5ea5a53 100644 --- a/python/t/900-python-dict.py +++ b/python/t/900-python-dict.py @@ -27,7 +27,6 @@ class Test900PythonDict (unittest.TestCase): g = guestfs.GuestFS (python_return_dict=False) r = g.internal_test_rhashtable ("5") - self.assertTrue (isinstance (r, list)) self.assertEqual (r, [ ("0","0"), ("1","1"), ("2","2...
2016 Feb 15
1
[PATCH] Start adding return values tests for bindings
...General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Test python-specific python_return_dict parameter. - -from types import * -import unittest -import os -import guestfs - -class Test900PythonDict (unittest.TestCase): - def test_python_no_dict (self): - g = guestfs.GuestFS (python_return_dict=False) - - r = g.internal_test_rhashtable ("5") - self.assertEqual (r, [ ("0","0"), ("1","1"), ("2","2"), -...