Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

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