def test_write_value_text_string(self):
    string = Text.create_from('$duck')
    writer = _ReconWriter()
    actual = writer._write_value(string)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(7, actual._size)
    self.assertEqual('"$duck"', actual._value)
    self.assertEqual('"', actual._last_char)
def test_write_value_text_string(self):
    string = Text.create_from('$duck')
    writer = _ReconWriter()
    actual = writer._write_value(string)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual(7, actual._size)
    self.assertEqual('"$duck"', actual._value)
    self.assertEqual('"', actual._last_char)