'create_volume ensures shares provided in config are mounted.'

@mock.patch.object(nfs, 'LOG')
def test_create_volume_should_ensure_nfs_mounted(self, mock_log):

    self._set_driver()
    drv = self._driver
    drv._find_share = mock.Mock()
    drv._find_share.return_value = self.TEST_NFS_EXPORT1
    drv._do_create_volume = mock.Mock()
    with mock.patch.object(drv, '_ensure_share_mounted') as mock_ensure_share:
        drv._ensure_share_mounted()
        volume = fake_volume.fake_volume_obj(self.context, size=self.TEST_SIZE_IN_GB)
        drv.create_volume(volume)
        mock_ensure_share.assert_called_once_with()
