Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def test_does_not_let_through_disallowed_name(self):
     with self.assertRaises(ValueError):
         get_interface('subprocess')
Ejemplo n.º 4
0
 def test_allows_http(self):
     from sentry.interfaces import Http
     result = get_interface('sentry.interfaces.Http')
     assert result is Http