def test_allows_http(self): from sentry.interfaces.http import Http result = get_interface("sentry.interfaces.Http") assert result is Http result = get_interface("request") assert result is Http
def test_allows_http(self): from sentry.interfaces.http import Http result = get_interface('sentry.interfaces.Http') assert result is Http result = get_interface('request') assert result is Http
def test_does_not_let_through_disallowed_name(self): with self.assertRaises(ValueError): get_interface('subprocess')
def test_allows_http(self): from sentry.interfaces import Http result = get_interface('sentry.interfaces.Http') assert result is Http