def test_attr_writer_existing_key_and_value_slot(self):
    key = Text.create_from('animal')
    value = _Record.create()
    value.add(Slot.create_slot(Text.create_from('dog'), Text.create_from('bark')))
    writer = _ReconWriter()
    actual = _AttrWriter._write(key=key, writer=writer, value=value)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('@animal(dog:bark)', actual._message)
def test_attr_writer_existing_key_and_value_slot(self):
    key = Text.create_from('animal')
    value = _Record.create()
    value.add(Slot.create_slot(Text.create_from('dog'), Text.create_from('bark')))
    writer = _ReconWriter()
    actual = _AttrWriter._write(key=key, writer=writer, value=value)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('@animal(dog:bark)', actual._message)