'Initialize connection raises exception on missing initiator'

def test_initialize_connection_no_initiator(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    connector = TEST_CONNECTOR.copy()
    connector['initiator'] = None
    ex = getattr(p, '_get_exception')()
    self.assertRaises(ex, p.initialize_connection, TEST_VOLUME, connector)
