seitime-frappe/webnotes/widgets/form/test_form.py
2013-11-25 18:46:50 +05:30

17 lines
492 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import webnotes, unittest
from webnotes.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__":
webnotes.connect()
unittest.main()