Ei kuvausta
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.

test_text.py 383B

123456789101112131415
  1. import unittest
  2. from lodel.leapi.datahandlers.datas import Text
  3. class TextTestCase(unittest.TestCase):
  4. def test_check_data(self):
  5. test_value = """ Ceci est un texte multiligne pour tester le check
  6. sur le datahandler
  7. Text
  8. """
  9. test_text = Text()
  10. _, error = test_text.check_data_value(test_value)
  11. self.assertIsNone(error)