You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2012/02/08 01:30:49 UTC

svn commit: r1241713 - /subversion/trunk/subversion/bindings/swig/python/tests/client.py

Author: danielsh
Date: Wed Feb  8 00:30:48 2012
New Revision: 1241713

URL: http://svn.apache.org/viewvc?rev=1241713&view=rev
Log:
Improve the testcase for the python binding for
svn_auth_get_platform_specific_client_providers.

This test was introduced in r1241530, but it only checked if a list was
returned. Now also the type of the elements of the list is checked.

* subversion/bindings/swig/python/tests/client.py
  (test_platform_providers): Improve testcase.

Patch by: Matthijs Kooijman <ma...@stdin.nl>

Modified:
    subversion/trunk/subversion/bindings/swig/python/tests/client.py

Modified: subversion/trunk/subversion/bindings/swig/python/tests/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/client.py?rev=1241713&r1=1241712&r2=1241713&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/client.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/client.py Wed Feb  8 00:30:48 2012
@@ -378,6 +378,9 @@ class SubversionClientTestCase(unittest.
     providers = core.svn_auth_get_platform_specific_client_providers(None, None)
     # Not much more we can test in this minimal environment.
     self.assert_(isinstance(providers, list))
+    self.assert_(all(map(lambda x:
+                           isinstance(x, core.svn_auth_provider_object_t),
+                         providers)))
 
   def testGnomeKeyring(self):
     if not hasattr(core, 'svn_auth_set_gnome_keyring_unlock_prompt_func'):