No Description
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_concat.py 600B

12345678910111213141516171819202122
  1. import unittest
  2. from lodel.leapi.datahandlers.datas import Concat as Testee
  3. class ConcatTestCase(unittest.TestCase):
  4. def test_base_type_is_char(self):
  5. self.assertEqual(Testee.base_type, 'char')
  6. def test_help_property_str_is_set(self):
  7. self.assertEqual(type(Testee.help), str)
  8. def test_correctly_sets_format_string(self):
  9. separator = '-'
  10. field_list = ['', '', '']
  11. testee = Testee(field_list, separator)
  12. self.assertEqual(testee._format_string, separator.join(['%s' for _ in field_list]))