mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
21 lines
448 B
Python
21 lines
448 B
Python
"""
|
|
Unit tests for salt.transport.base.
|
|
"""
|
|
import pytest
|
|
|
|
import salt.transport.base
|
|
|
|
pytestmark = [
|
|
pytest.mark.core_test,
|
|
]
|
|
|
|
|
|
def test_unclosed_warning():
|
|
|
|
transport = salt.transport.base.Transport()
|
|
assert transport._closing is False
|
|
assert transport._connect_called is False
|
|
transport.connect()
|
|
assert transport._connect_called is True
|
|
with pytest.warns(salt.transport.base.TransportWarning):
|
|
del transport
|