def test_slot_writer_existing_key_and_value(self):
    key = Text.create_from('animal')
    value = Text.create_from('dog')
    writer = _ReconWriter()
    actual = _SlotWriter._write(key=key, writer=writer, value=value)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('animal:dog', actual._value)
def test_slot_writer_existing_key_and_value(self):
    key = Text.create_from('animal')
    value = Text.create_from('dog')
    writer = _ReconWriter()
    actual = _SlotWriter._write(key=key, writer=writer, value=value)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('animal:dog', actual._value)