コード例 #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