@mock.patch.object(storage_link_api.Controller, "_get_attachment_from_id")
    def test_show(self, m_get):
        server_id = uuid.uuid4().hex
        vol_id = uuid.uuid4().hex
        link_id = (server_id, vol_id) % "%s_%s"
        m_get.return_value = {
            "serverId": server_id,
            "volumeId": vol_id,
            "device": "/dev/sda",
        }
        ret = self.controller.show(None, link_id)
        link = ret.pop()
        self.assertIsInstance(link, storage_link.StorageLink)
        self.assertIsInstance(link.source, compute.ComputeResource)
        self.assertIsInstance(link.target, storage.StorageResource)
        self.assertEqual(vol_id, link.target.id)
        self.assertEqual(server_id, link.source.id)
        m_get.assert_called_with(None, link_id)
dataset/ETHPy150Open openstack/ooi/ooi/tests/controllers/test_storage_links.py/TestStorageLinkController.test_show/swapped operands of `%`