'Getting stats works successfully.'

def test_get_volume_stats(self):

    self.conf.reserved_percentage = 0
    expected_answers = {'vendor_name': 'Violin    Memory,    Inc.', 'reserved_percentage': 0, 'QoS_support': False, 'free_capacity_gb': 2781, 'total_capacity_gb': 14333, 'consistencygroup_support': False}
    owner = 'lab-host1'
    def lookup(value):
        return (six.text_type(value) + '.vmem.com')
    conf = {'pool.get_storage_pools.return_value': STATS_STORAGE_POOL_RESPONSE}
    self.driver.vmem_mg = self.setup_mock_concerto(m_conf=conf)
    with mock.patch('socket.getfqdn', side_effect=lookup):
        result = self.driver._get_volume_stats(owner)
    self.assertDictEqual(expected_answers, result)
