'Verify after 1st retry volume becoming available is a success.'

def test_volume_create_delay(self):

    def _progress_api_return(mock_api):
        if (mock_api.retry_count == 1):
            _bad_vol_ai = stub_single_ai.copy()
            _bad_vol_ai['storage_instances']['storage-1']['volumes']['volume-1']['op_status'] = 'unavailable'
            return _bad_vol_ai
        else:
            self.mock_api.retry_count += 1
            return stub_single_ai
    self.mock_api.retry_count = 0
    self.mock_api.return_value = _progress_api_return(self.mock_api)
    self.assertEqual(1, self.mock_api.retry_count)
    self.assertIsNone(self.driver.create_volume(self.volume))
