您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

18 行
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()