def test_write_value_record(self):
    record = _Record.create()
    record.add(Slot.create_slot(Text.create_from('Cow'), Text.create_from('Moo')))
    writer = _ReconWriter()
    actual = writer._write_value(record)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(7, actual._size)
    self.assertEqual('Cow:Moo', actual._value)
    self.assertEqual('o', actual._last_char)
def test_write_value_record(self):
    record = _Record.create()
    record.add(Slot.create_slot(Text.create_from('Cow'), Text.create_from('Moo')))
    writer = _ReconWriter()
    actual = writer._write_value(record)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(7, actual._size)
    self.assertEqual('Cow:Moo', actual._value)
    self.assertEqual('o', actual._last_char)