def test_show_adapter(self):
        # show an adapter successfully
        url = self.adapter_id % '/adapters/%s'
        return_value = self.get(url)
        resp = json.loads(return_value.get_data())
        self.assertEqual(return_value.status_code, 200)
        self.assertEqual(resp['name'], self.adapter_name)

        # give a non-existed id
        url = '/adapters/99'
        return_value = self.get(url)
        self.assertEqual(return_value.status_code, 404)
dataset/ETHPy150Open openstack/compass-core/compass/tests/api/test_api.py/TestAdapterAPI.test_show_adapter/swapped operands of `%`