# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import unittest import frappe from frappe.tasks import run_async_task class TestAsync(unittest.TestCase): def test_response(self): result = run_async_task.delay(site=frappe.local.site, user='Administrator', cmd='async_ping', form_dict=frappe._dict()) result = result.get() self.assertEquals(result.get("message"), "pong")