

def test_http_client():
    dinergate = Mock()
    with patch('requests.Session') as Session:
        instance = Session.return_value
        http_client = HTTPClientProperty(session_class=Session)
        assert (http_client.provide_value(Session) is instance)
        Session.assert_called_once_with()

dataset/ETHPy150Open douban/brownant/tests/test_pipeline/test_network.py test_http_client/VarMisuse@46/66 `dinergate`->`Session`