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