'_get_capacity_info should calculate correct value.'

def test_get_capacity_info_for_share_and_mount_point_with_spaces(self):

    self._set_driver()
    drv = self._driver
    stat_total_size = 2620544
    stat_avail = 2129984
    stat_output = ('1    %d    %d' % (stat_total_size, stat_avail))
    du_used = 490560
    du_output = ('%d    /mnt' % du_used)
    with mock.patch.object(drv, '_get_mount_point_for_share') as mock_get_mount:
        mock_get_mount.return_value = self.TEST_MNT_POINT_SPACES
        drv._execute.side_effect = [(stat_output, None), (du_output, None)]
        self.assertEqual((stat_total_size, stat_avail, du_used), drv._get_capacity_info(self.TEST_NFS_EXPORT_SPACES))
        mock_get_mount.assert_called_once_with(self.TEST_NFS_EXPORT_SPACES)
        calls = [mock.call('stat', '-f', '-c', '%S    %b    %a', self.TEST_MNT_POINT_SPACES, run_as_root=True), mock.call('du', '-sb', '--apparent-size', '--exclude', '*snapshot*', self.TEST_MNT_POINT_SPACES, run_as_root=True)]
        drv._execute.assert_has_calls(calls)
