def test_get_usage_bad_resources(self):
    bad_resource = ['unknown_resource']
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, bad_resource)
    bad_class = ['class:UNKNOWN_CLASS']
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, bad_class)
    no_resources = []
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, no_resources)
def test_get_usage_bad_resources(self):
    bad_resource = ['unknown_resource']
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, bad_resource)
    bad_class = ['class:UNKNOWN_CLASS']
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, bad_class)
    no_resources = []
    self.assertRaises(ValueError, placement_limits._get_usage, self.context, uuids.project, no_resources)