def test_validate_data(self):
    bodies = [{'data': 'aaa'}]
    for body in bodies:
        self.request._json = body
        self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Buckets'].create_bucket)
def test_validate_data(self):
    bodies = [{'data': 'aaa'}]
    for body in bodies:
        self.request._json = body
        self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Buckets'].create_bucket)