diff --git a/tests/integration/test_local.py b/tests/integration/test_local.py index 1db97c1..b9d8c25 100644 --- a/tests/integration/test_local.py +++ b/tests/integration/test_local.py @@ -1,15 +1,21 @@ # -*- coding: utf-8 -*- +import warnings def test_local(pepper_client, session_minion_id): assert pepper_client.local('*', 'test.ping')['return'][0][session_minion_id] is True def test_local_with_tgt_type(pepper_client, session_minion_id): + warnings.warn(UserWarning(str(pepper_client.local('*', 'test.ping', tgt_type='list')['return']))) + warnings.warn(UserWarning(str(pepper_client.local(session_minion_id, 'test.ping', tgt_type='list')['return']))) assert pepper_client.local('*', 'test.ping', tgt_type='list')['return'][0][session_minion_id] is False assert pepper_client.local(session_minion_id, 'test.ping', tgt_type='list')['return'][0][session_minion_id] is True def test_local_with_deprecated_expr_form(pepper_client, session_minion_id): + warnings.warn(UserWarning(str(pepper_client.local('*', 'test.ping', expr_form='list')['return'][0]))) + warnings.warn(UserWarning(str(pepper_client.local(session_minion_id, 'test.ping', expr_form='list')['return']))) assert pepper_client.local('*', 'test.ping', expr_form='list')['return'][0][session_minion_id] is False - assert pepper_client.local(session_minion_id, 'test.ping', expr_form='list')['return'][0][session_minion_id] is True + r = pepper_client.local(session_minion_id, 'test.ping', expr_form='list')['return'][0][session_minion_id] + assert r is True