seitime-frappe/frappe/tests/test_async.py
Pratik Vyas 422668a67f Async
2015-07-24 10:07:24 +05:30

16 lines
438 B
Python

# -*- 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(frappe.local.site, 'Administrator', 'async_ping', frappe._dict())
self.assertEquals(result.message, "pong")