seitime-frappe/frappe/widgets/form/test_form.py
2014-02-14 14:55:11 +05:30

17 lines
486 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe, unittest
from frappe.widgets.form.utils import get_linked_docs
class TestForm(unittest.TestCase):
def test_linked_with(self):
results = get_linked_docs("Role", "System Manager")
self.assertTrue("Profile" in results)
self.assertTrue("DocType" in results)
if __name__=="__main__":
frappe.connect()
unittest.main()