File: test_deprecation.py

package info (click to toggle)
python-pyspnego 0.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,648 kB
  • sloc: python: 16,191; sh: 182; makefile: 11
file content (25 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
# Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)

import pytest


def test_gss_import_dep():
    with pytest.deprecated_call(match="spnego.gss is deprecated and will be removed in a future release"):
        import spnego.gss


def test_negotiate_import_dep():
    with pytest.deprecated_call(match="spnego.negotiate is deprecated and will be removed in a future release"):
        import spnego.negotiate


def test_ntlm_import_dep():
    with pytest.deprecated_call(match="spnego.ntlm is deprecated and will be removed in a future release"):
        import spnego.ntlm


def test_sspi_import_dep():
    with pytest.deprecated_call(match="spnego.sspi is deprecated and will be removed in a future release"):
        import spnego.sspi