'update stats raises exception if driver initialized failed.'

def test_update_stats_when_driver_initialize_failed(self):

    with mock.patch((__name__ + '.FakeDS8KCommonHelper')) as mock_helper:
        mock_helper.return_value = None
        self.driver = FakeDS8KProxy(self.storage_info, self.logger, self.exception, self)
        self.driver.setup(self.ctxt)
        self.assertRaises(exception.CinderException, self.driver._update_stats)
