def test_write_record_multiple(self):
    record = _Record.create()
    record.add(Text.create_from('Dog'))
    record.add(Text.create_from('Cat'))
    writer = _ReconWriter()
    actual = writer._write_record(record)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(6, actual._size)
    self.assertEqual('DogCat', actual._value)
    self.assertEqual('t', actual._last_char)
def test_write_record_multiple(self):
    record = _Record.create()
    record.add(Text.create_from('Dog'))
    record.add(Text.create_from('Cat'))
    writer = _ReconWriter()
    actual = writer._write_record(record)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(6, actual._size)
    self.assertEqual('DogCat', actual._value)
    self.assertEqual('t', actual._last_char)