def test_validate_headers(self):
    headers = [{'If-None-Match': '123'}, {'If-Match': '123'}]
    for head in headers:
        self.request.headers = head
        self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Buckets'].get_buckets)
def test_validate_headers(self):
    headers = [{'If-None-Match': '123'}, {'If-Match': '123'}]
    for head in headers:
        self.request.headers = head
        self.assertRaises(ValidationError, unmarshal_request, self.request, self.resources['Buckets'].get_buckets)