def test_validate_batch_defaults_body(self):
    self.request._json = {'defaults': {'body': []}, 'requests': [{'method': 'PUT', 'path': '/buckets/b1'}]}
    self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Batch'].batch)
def test_validate_batch_defaults_body(self):
    self.request._json = {'defaults': {'body': []}, 'requests': [{'method': 'PUT', 'path': '/buckets/b1'}]}
    self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Batch'].batch)