예제 #1
0
파일: tests.py 프로젝트: haojiang1/sentry
    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
예제 #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
예제 #3
0
 def test_does_not_let_through_disallowed_name(self):
     with self.assertRaises(ValueError):
         get_interface('subprocess')
예제 #4
0
파일: tests.py 프로젝트: Irrelon/sentry
 def test_allows_http(self):
     from sentry.interfaces import Http
     result = get_interface('sentry.interfaces.Http')
     assert result is Http