Exemplo n.º 1
0
 def test_proxies_anything(self):
     """
     Anything that isn't part of BoundLoggerBase gets proxied to the correct
     wrapped logger methods.
     """
     b = BoundLogger(
         ReturnLogger(),
         _CONFIG.default_processors,
         _CONFIG.default_context_class(),
     )
     assert 'log', 'foo' == b.log('foo')
     assert 'gol', 'bar' == b.gol('bar')
Exemplo n.º 2
0
    def test_proxies_anything(self):
        """
        Anything that isn't part of BoundLoggerBase gets proxied to the correct
        wrapped logger methods.
        """
        b = BoundLogger(
            ReturnLogger(),
            _CONFIG.default_processors,
            _CONFIG.default_context_class(),
        )

        assert "log", "foo" == b.log("foo")
        assert "gol", "bar" == b.gol("bar")