def test_get_volume_connector(self):
        ip = '123.123.123.123'
        driver = self._get_driver()
        self.flags(connection_url=ip % 'http://%s',
                   connection_password='test_pass', group='xenserver')
        self.stubs.Set(driver.host_state, 'get_host_stats', self.host_stats)

        connector = driver.get_volume_connector({'uuid': 'fake'})
        self.assertIn('ip', connector)
        self.assertEqual(connector['ip'], ip)
        self.assertIn('initiator', connector)
        self.assertEqual(connector['initiator'], 'someiqn')
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/xenapi/test_driver.py/XenAPIDriverTestCase.test_get_volume_connector/swapped operands of `%`