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.
'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()