'create_volume ensures shares provided in config are mounted.'

def test_create_volume_should_ensure_quobyte_mounted(self):

    drv = self._driver
    drv.LOG = mock.Mock()
    drv._find_share = mock.Mock()
    drv._find_share.return_value = self.TEST_QUOBYTE_VOLUME
    drv._do_create_volume = mock.Mock()
    drv._ensure_shares_mounted = mock.Mock()
    volume = self._simple_volume(size=self.TEST_SIZE_IN_GB)
    drv.create_volume(volume)
    drv._find_share.assert_called_once_with(mock.ANY)
    drv._do_create_volume.assert_called_once_with(volume)
    drv._ensure_shares_mounted.assert_called_once_with()
