def test_attribute_headers(self): date = testing.httpnow() hash = 'fa0d1a60ef6616bb28038515c8ea4cb2' auth = 'HMAC_SHA1 c590afa9bb59191ffab30f223791e82d3fd3e3af' agent = 'testing/1.0.1' default_agent = 'curl/7.24.0 (x86_64-apple-darwin12.0)' self._test_attribute_header('Accept', 'x-falcon', 'accept', default='*/*') self._test_attribute_header('Authorization', auth, 'auth') self._test_attribute_header('Content-Type', 'text/plain', 'content_type') self._test_attribute_header('Expect', '100-continue', 'expect') self._test_attribute_header('If-Match', hash, 'if_match') self._test_attribute_header('If-Modified-Since', date, 'if_modified_since') self._test_attribute_header('If-None-Match', hash, 'if_none_match') self._test_attribute_header('If-Range', hash, 'if_range') self._test_attribute_header('If-Unmodified-Since', date, 'if_unmodified_since') self._test_attribute_header('User-Agent', agent, 'user_agent', default=default_agent)