'Get stats test.'

@mock.patch.object(requests, 'request', FakeRequests)
def test_get_volume_stats(self):

    self.configuration.safe_get.return_value = 'ZadaraVPSAISCSIDriver'
    data = self.driver.get_volume_stats(True)
    self.assertEqual('Zadara    Storage', data['vendor_name'])
    self.assertEqual('unknown', data['total_capacity_gb'])
    self.assertEqual('unknown', data['free_capacity_gb'])
    self.assertEqual({'total_capacity_gb': 'unknown', 'free_capacity_gb': 'unknown', 'reserved_percentage': self.configuration.reserved_percentage, 'QoS_support': False, 'vendor_name': 'Zadara    Storage', 'driver_version': self.driver.VERSION, 'storage_protocol': 'iSER', 'volume_backend_name': 'ZadaraVPSAISCSIDriver'}, data)
