[FIX] account_voucher: fixed error in args of _get_exchange_lines()
[odoo/odoo.git] / tests / test_xmlrpc.py
index 35ba07b..4ad530c 100644 (file)
@@ -24,7 +24,7 @@ tearDownModule = common.tearDownModule
 
 class test_xmlrpc(unittest2.TestCase):
 
-    def test_xmlrpc_create_database_polling(self):
+    def test_00_xmlrpc_create_database_polling(self):
         """
         Simulate a OpenERP client requesting the creation of a database and
         polling the server until the creation is complete.
@@ -52,6 +52,15 @@ class test_xmlrpc(unittest2.TestCase):
             'ir.model', 'search', [], {})
         assert ids
 
+    def test_xmlrpc_61_ir_model_search(self):
+        """ Try a search on the object service. """
+
+        proxy = xmlrpclib.ServerProxy(common.model_uri_61 + 'model/' + DB + '/ir.model')
+        ids = proxy.execute(ADMIN_USER_ID, ADMIN_PASSWORD, 'search', [])
+        assert ids
+        ids = proxy.execute(ADMIN_USER_ID, ADMIN_PASSWORD, 'search', [], {})
+        assert ids
+
 if __name__ == '__main__':
     unittest2.main()