text: import unittest
  import zserio
  
  from testutils import getZserioApi
  
  class ExpressionEnumTemplateArgumentConflictTest(unittest.TestCase):
      @classmethod
      def setUpClass(cls):
          cls.api = getZserioApi(__file__, "templates.zs").expression_enum_template_argument_conflict
  
      def testReadWrite(self):
          enumTemplateArgumentConflict_Letters = self.api.EnumTemplateArgumentConflict_Letters(False, 10)
          self.assertTrue(enumTemplateArgumentConflict_Letters.is_expression_field_used())
  
          enumTemplateArgumentConflictHolder = (
              self.api.EnumTemplateArgumentConflictHolder(enumTemplateArgumentConflict_Letters)
          )
          writer = zserio.BitStreamWriter()
          enumTemplateArgumentConflictHolder.write(writer)
          reader = zserio.BitStreamReader(writer.byte_array, writer.bitposition)
          readEnumTemplateArgumentConflictHolder = self.api.EnumTemplateArgumentConflictHolder()
          readEnumTemplateArgumentConflictHolder.read(reader)
          self.assertEqual(enumTemplateArgumentConflictHolder, readEnumTemplateArgumentConflictHolder)
  