'Function call to test the summary volumes API for version v3.'

def test_volumes_summary_in_supported_version(self):

    req = self._fake_volumes_summary_request()
    res_dict = self.controller.summary(req)
    expected = {'volume-summary': {'total_size': 0.0, 'total_count': 0}}
    self.assertEqual(expected, res_dict)
    vol = v2_test_volumes.VolumeApiTest._vol_in_request_body(availability_zone='nova')
    body = {'volume': vol}
    req = fakes.HTTPRequest.blank('/v3/volumes')
    res_dict = self.controller.create(req, body)
    req = self._fake_volumes_summary_request()
    res_dict = self.controller.summary(req)
    expected = {'volume-summary': {'total_size': 1.0, 'total_count': 1}}
    self.assertEqual(expected, res_dict)
