MCPcopy Create free account
hub / github.com/oauthlib/oauthlib / test_getattr_raise_attribute_error

Method test_getattr_raise_attribute_error

tests/test_common.py:174–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 self.assertEqual('foo bar', actual_value)
173
174 def test_getattr_raise_attribute_error(self):
175 r = Request(URI, body='foo bar')
176 with self.assertRaises(AttributeError):
177 getattr(r, 'does_not_exist')
178
179 def test_sanitizing_authorization_header(self):
180 r = Request(URI, headers={'Accept': 'application/json',

Callers

nothing calls this directly

Calls 1

RequestClass · 0.90

Tested by

no test coverage detected