You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
492 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes, unittest
  5. from webnotes.widgets.form.utils import get_linked_docs
  6. class TestForm(unittest.TestCase):
  7. def test_linked_with(self):
  8. results = get_linked_docs("Role", "System Manager")
  9. self.assertTrue("Profile" in results)
  10. self.assertTrue("DocType" in results)
  11. if __name__=="__main__":
  12. webnotes.connect()
  13. unittest.main()