def test_generate_alternate_link(self):
        view = images_view.ViewBuilder()
        request = self.http_request.blank(self.url_base + 'images/1')
        generated_url = view._get_alternate_link(request, 1)
        actual_url = glance.generate_glance_url() % "%s/images/1"
        self.assertEqual(generated_url, actual_url)
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_images.py/ImagesControllerTestV21.test_generate_alternate_link/swapped operands of `%`