'Test delete subprojects\' quotas won\'t consider default quotas.
Test plan:
- Update the volume quotas of project A
- Update the volume quotas of project B
- Delete the quotas of project B
Resources with default quotas aren\'t expected to be considered when
updating the allocated values of the parent project. Thus, the delete
operation should succeed.'

def test_subproject_delete_not_considering_default_quotas(self):

    self.req.environ['cinder.context'].project_id = self.A.id
    body = {'quota_set': {'volumes': 5}}
    result = self.controller.update(self.req, self.A.id, body)
    self.assertEqual(body['quota_set']['volumes'], result['quota_set']['volumes'])
    body = {'quota_set': {'volumes': 2}}
    result = self.controller.update(self.req, self.B.id, body)
    self.assertEqual(body['quota_set']['volumes'], result['quota_set']['volumes'])
    self.controller.delete(self.req, self.B.id)
