def test_block_writer_slot_in_attr_and_slot(self):
    items = list()
    record_map = _Record.create()
    record_map.add(Slot.create_slot(Text.create_from('dog'), Text.create_from('bark')))
    items.append(Attr.create_attr(Text.create_from('animal'), record_map))
    items.append(Slot.create_slot(Text.create_from('cat'), Text.create_from('meow')))
    writer = _ReconWriter()
    actual = _BlockWriter._write(items, writer=writer, first=True)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('@animal(dog:bark){cat:meow}', actual._message)
def test_block_writer_slot_in_attr_and_slot(self):
    items = list()
    record_map = _Record.create()
    record_map.add(Slot.create_slot(Text.create_from('dog'), Text.create_from('bark')))
    items.append(Attr.create_attr(Text.create_from('animal'), record_map))
    items.append(Slot.create_slot(Text.create_from('cat'), Text.create_from('meow')))
    writer = _ReconWriter()
    actual = _BlockWriter._write(items, writer=writer, first=True)
    self.assertIsInstance(actual, _OutputMessage)
    self.assertEqual('@animal(dog:bark){cat:meow}', actual._message)