[Asterisk-code-review] (tests): Remove all unuset import of Python tests inside tests/* (...testsuite[master])
Rodrigo Ramirez Norambuena
asteriskteam at digium.com
Mon Jun 3 14:26:05 CDT 2019
Rodrigo Ramirez Norambuena has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/11438
Change subject: (tests): Remove all unuset import of Python tests inside tests/*
......................................................................
(tests): Remove all unuset import of Python tests inside tests/*
Change-Id: Ife6e90be1fe2707448d6fec34f1aa826332377dd
---
M tests/apps/bridge/bridge_transfer_callee/run-test
M tests/apps/chanspy/chanspy_w_mixmonitor/run-test
M tests/apps/confbridge/confbridge_nominal/run-test
M tests/apps/confbridge/confbridge_recording/run-test
M tests/apps/directed_pickup/pickup_chan/run-test
M tests/apps/directory/directory_attendant_exit/run-test
M tests/apps/directory/directory_context_operator_exit/run-test
M tests/apps/directory/directory_operator_exit/run-test
M tests/apps/incomplete/sip_incomplete/run-test
M tests/apps/page/page_baseline/run-test
M tests/apps/queues/position_priority_maxlen/run-test
M tests/apps/queues/queue_baseline/run-test
M tests/apps/queues/queue_transfer_callee/run-test
M tests/apps/queues/reason_pause_ami/run-test
M tests/apps/queues/set_penalty/run-test
M tests/apps/voicemail/authenticate_extensions/run-test
M tests/apps/voicemail/authenticate_invalid_mailbox/run-test
M tests/apps/voicemail/authenticate_invalid_password/run-test
M tests/apps/voicemail/authenticate_nominal/run-test
M tests/apps/voicemail/check_voicemail_callback/run-test
M tests/apps/voicemail/check_voicemail_delete/run-test
M tests/apps/voicemail/check_voicemail_dialout/run-test
M tests/apps/voicemail/check_voicemail_envelope/run-test
M tests/apps/voicemail/check_voicemail_forward/run-test
M tests/apps/voicemail/check_voicemail_forward_hangup/run-test
M tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test
M tests/apps/voicemail/check_voicemail_new_user/run-test
M tests/apps/voicemail/check_voicemail_new_user_hangup/run-test
M tests/apps/voicemail/check_voicemail_nominal/run-test
M tests/apps/voicemail/check_voicemail_options_change_password/run-test
M tests/apps/voicemail/check_voicemail_options_change_password_spooldir/run-test
M tests/apps/voicemail/check_voicemail_options_record_busy/run-test
M tests/apps/voicemail/check_voicemail_options_record_name/run-test
M tests/apps/voicemail/check_voicemail_options_record_temp/run-test
M tests/apps/voicemail/check_voicemail_options_record_unavail/run-test
M tests/apps/voicemail/check_voicemail_reply/run-test
M tests/apps/voicemail/check_voicemail_while_leaving_msg/run-test
M tests/apps/voicemail/func_vmcount/run-test
M tests/apps/voicemail/leave_voicemail_contexts/run-test
M tests/apps/voicemail/leave_voicemail_external_notification/run-test
M tests/apps/voicemail/leave_voicemail_forwarding/run-test
M tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test
M tests/apps/voicemail/leave_voicemail_nominal/run-test
M tests/apps/voicemail/leave_voicemail_priority/run-test
M tests/apps/voicemail/play_message/run-test
M tests/apps/voicemail/polling/poll_multiple_mailboxes/run-test
M tests/apps/voicemail/polling/poll_no_subs/run-test
M tests/apps/voicemail/polling/poll_same_mailbox/run-test
M tests/apps/voicemail/polling/poll_single_mailbox/run-test
M tests/apps/voicemail/polling/poll_sub_unsub/run-test
M tests/blind-transfer-parkingtimeout/run-test
M tests/bridge/bridge_action/bridge_action.py
M tests/bridge/connected_line_update/Tester.py
M tests/channels/SIP/SDP_attribute_passthrough/run-test
M tests/channels/SIP/acl_call/run-test
M tests/channels/SIP/generic_ccss/run-test
M tests/channels/SIP/handle_response_address_incomplete/run-test
M tests/channels/SIP/hangupcause/run-test
M tests/channels/SIP/noload_res_srtp/run-test
M tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
M tests/channels/SIP/pcap_demo/run-test
M tests/channels/SIP/realtime_nosipregs/run-test
M tests/channels/SIP/realtime_sipregs/run-test
M tests/channels/SIP/refer_replaces_to_self/run-test
M tests/channels/SIP/secure_bridge_media/run-test
M tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
M tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test
M tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
M tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test
M tests/channels/SIP/sip_cause/run-test
M tests/channels/SIP/sip_custom_presence/multiple_state_change/run-test
M tests/channels/SIP/sip_custom_presence/nominal_state_change/run-test
M tests/channels/SIP/sip_custom_presence/non_digium_state_change/run-test
M tests/channels/SIP/sip_custom_presence/resubscribe/run-test
M tests/channels/SIP/sip_hold/run-test
M tests/channels/SIP/sip_hold_direct_media/run-test
M tests/channels/SIP/sip_one_legged_transfer_v6/run-test
M tests/channels/SIP/sip_register_domain_acl/run-test
M tests/channels/SIP/sip_srtp/srtp_call/run-test
M tests/channels/SIP/sip_tls_call/run-test
M tests/channels/SIP/sip_tls_register/run-test
M tests/channels/SIP/tcpauthlimit/tcpauthlimit.py
M tests/channels/iax2/hangupcause/run-test
M tests/channels/pjsip/acl_call/run-test
M tests/channels/pjsip/call_pickup/run-test
M tests/channels/pjsip/rtp_ptime/non-transcode/run-test
M tests/channels/pjsip/rtp_ptime/transcode/run-test
M tests/channels/pjsip/sdp_offer_answer/attribute_passthrough/speex_h263_h264/run-test
M tests/channels/pjsip/subscriptions/presence/verify_bodies/presence.py
M tests/codecs/audio_analyzer.py
M tests/codecs/rtp_analyzer.py
M tests/fastagi/channel-status/run-test
M tests/fastagi/connect/run-test
M tests/fastagi/control-stream-file/run-test
M tests/fastagi/database/run-test
M tests/fastagi/execute/run-test
M tests/fastagi/get-data/run-test
M tests/fastagi/hangup/run-test
M tests/fastagi/record-file/run-test
M tests/fastagi/say-alpha/run-test
M tests/fastagi/say-date/run-test
M tests/fastagi/say-datetime/run-test
M tests/fastagi/say-digits/run-test
M tests/fastagi/say-number/run-test
M tests/fastagi/say-phonetic/run-test
M tests/fastagi/say-time/run-test
M tests/fastagi/stream-file/run-test
M tests/fastagi/wait-for-digit/run-test
M tests/fax/pjsip/gateway_g711_t38/run-test
M tests/fax/pjsip/gateway_native_t38/run-test
M tests/fax/pjsip/gateway_t38_g711_rx/run-test
M tests/fax/pjsip/gateway_t38_g711_tx/run-test
M tests/fax/pjsip/t38/run-test
M tests/fax/pjsip/t38_fast_reject/run-test
M tests/fax/sip/gateway_g711_t38/run-test
M tests/fax/sip/gateway_mix1/run-test
M tests/fax/sip/gateway_mix2/run-test
M tests/fax/sip/gateway_mix3/run-test
M tests/fax/sip/gateway_mix4/run-test
M tests/fax/sip/gateway_native_t38/run-test
M tests/fax/sip/gateway_native_t38_ced/run-test
M tests/fax/sip/gateway_no_t38/run-test
M tests/fax/sip/gateway_t38_g711/run-test
M tests/fax/sip/gateway_timeout1/run-test
M tests/fax/sip/gateway_timeout2/run-test
M tests/fax/sip/gateway_timeout3/run-test
M tests/fax/sip/gateway_timeout4/run-test
M tests/fax/sip/gateway_timeout5/run-test
M tests/fax/sip/voxfax_g711/run-test
M tests/feature_attended_transfer/run-test
M tests/feature_blonde_transfer/run-test
M tests/feature_call_pickup/run-test
M tests/funcs/func_presencestate/run-test
M tests/funcs/func_srv/run-test
M tests/hep/hep_capture_node.py
M tests/http_server/servername/run-test
M tests/manager/config/ManagerConfigTest.py
M tests/manager/danger/dangerous/run-test
M tests/manager/danger/safe/run-test
M tests/manager/device_state_list/ami_device_state_list.py
M tests/manager/exten_state_list/ami_exten_state_list.py
M tests/manager/login/run-test
M tests/manager/presence_state_list/ami_presence_state_list.py
M tests/pbx/call_file_retries_alwaysdelete/retries_alwaysdelete.py
M tests/pbx/merge_contexts/run-test
M tests/pbx/pbx_lua_background/run-test
M tests/pbx/pbx_lua_goto/run-test
M tests/regressions/M18882/run-test
M tests/rest_api/CORS/run-test
M tests/rest_api/authentication/run-test
M tests/rest_api/content-type/run-test
M tests/rest_api/external_interaction/blind_transfer/call_transfer.py
M tests/rest_api/message/message_modules.py
M tests/udptl/run-test
M tests/udptl_v6/run-test
155 files changed, 15 insertions(+), 333 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/38/11438/1
diff --git a/tests/apps/bridge/bridge_transfer_callee/run-test b/tests/apps/bridge/bridge_transfer_callee/run-test
index a30f8eb..bed034a 100755
--- a/tests/apps/bridge/bridge_transfer_callee/run-test
+++ b/tests/apps/bridge/bridge_transfer_callee/run-test
@@ -8,7 +8,6 @@
the GNU General Public License Version 2.
'''
import sys
-import os
import logging
import re
diff --git a/tests/apps/chanspy/chanspy_w_mixmonitor/run-test b/tests/apps/chanspy/chanspy_w_mixmonitor/run-test
index 39aafc7..612a3ab 100755
--- a/tests/apps/chanspy/chanspy_w_mixmonitor/run-test
+++ b/tests/apps/chanspy/chanspy_w_mixmonitor/run-test
@@ -13,13 +13,10 @@
import subprocess
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
-from starpy import manager
+from twisted.internet import reactor
from starpy import fastagi
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/apps/confbridge/confbridge_nominal/run-test b/tests/apps/confbridge/confbridge_nominal/run-test
index 60e7138..33decae 100755
--- a/tests/apps/confbridge/confbridge_nominal/run-test
+++ b/tests/apps/confbridge/confbridge_nominal/run-test
@@ -16,11 +16,8 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
-from asterisk.test_state import FailureTestState
from asterisk.confbridge import ConfbridgeTestState
from asterisk.confbridge import ConfbridgeChannelObject
diff --git a/tests/apps/confbridge/confbridge_recording/run-test b/tests/apps/confbridge/confbridge_recording/run-test
index df5ef43..3311846 100755
--- a/tests/apps/confbridge/confbridge_recording/run-test
+++ b/tests/apps/confbridge/confbridge_recording/run-test
@@ -16,7 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.test_state import TestStateController
from asterisk.confbridge import ConfbridgeTestState
diff --git a/tests/apps/directed_pickup/pickup_chan/run-test b/tests/apps/directed_pickup/pickup_chan/run-test
index c006b49..6fd1b17 100755
--- a/tests/apps/directed_pickup/pickup_chan/run-test
+++ b/tests/apps/directed_pickup/pickup_chan/run-test
@@ -8,13 +8,11 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/apps/directory/directory_attendant_exit/run-test b/tests/apps/directory/directory_attendant_exit/run-test
index 388872c..1721880 100755
--- a/tests/apps/directory/directory_attendant_exit/run-test
+++ b/tests/apps/directory/directory_attendant_exit/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class DirectoryTest(TestCase):
diff --git a/tests/apps/directory/directory_context_operator_exit/run-test b/tests/apps/directory/directory_context_operator_exit/run-test
index 388872c..1721880 100755
--- a/tests/apps/directory/directory_context_operator_exit/run-test
+++ b/tests/apps/directory/directory_context_operator_exit/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class DirectoryTest(TestCase):
diff --git a/tests/apps/directory/directory_operator_exit/run-test b/tests/apps/directory/directory_operator_exit/run-test
index 388872c..1721880 100755
--- a/tests/apps/directory/directory_operator_exit/run-test
+++ b/tests/apps/directory/directory_operator_exit/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class DirectoryTest(TestCase):
diff --git a/tests/apps/incomplete/sip_incomplete/run-test b/tests/apps/incomplete/sip_incomplete/run-test
index 781a0c3..8bef418 100755
--- a/tests/apps/incomplete/sip_incomplete/run-test
+++ b/tests/apps/incomplete/sip_incomplete/run-test
@@ -13,7 +13,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/apps/page/page_baseline/run-test b/tests/apps/page/page_baseline/run-test
index 6b2d4d7..78f63c6 100755
--- a/tests/apps/page/page_baseline/run-test
+++ b/tests/apps/page/page_baseline/run-test
@@ -8,11 +8,9 @@
'''
import sys
from twisted.internet import reactor
-from starpy import manager
import logging
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/apps/queues/position_priority_maxlen/run-test b/tests/apps/queues/position_priority_maxlen/run-test
index b3e5856..0b98f14 100755
--- a/tests/apps/queues/position_priority_maxlen/run-test
+++ b/tests/apps/queues/position_priority_maxlen/run-test
@@ -117,5 +117,6 @@
return 0
return 1
+
if __name__ == "__main__":
sys.exit(main() or 0)
diff --git a/tests/apps/queues/queue_baseline/run-test b/tests/apps/queues/queue_baseline/run-test
index 87fb71a..ac201e7 100755
--- a/tests/apps/queues/queue_baseline/run-test
+++ b/tests/apps/queues/queue_baseline/run-test
@@ -11,7 +11,6 @@
'''
import sys
-import os
import logging
diff --git a/tests/apps/queues/queue_transfer_callee/run-test b/tests/apps/queues/queue_transfer_callee/run-test
index 14766a5..90652f5 100755
--- a/tests/apps/queues/queue_transfer_callee/run-test
+++ b/tests/apps/queues/queue_transfer_callee/run-test
@@ -11,7 +11,6 @@
'''
import sys
-import os
import logging
diff --git a/tests/apps/queues/reason_pause_ami/run-test b/tests/apps/queues/reason_pause_ami/run-test
index 1e6c87a..a60fc99 100755
--- a/tests/apps/queues/reason_pause_ami/run-test
+++ b/tests/apps/queues/reason_pause_ami/run-test
@@ -11,10 +11,7 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
-from twisted.internet import reactor, defer
-from starpy import manager
logger = logging.getLogger(__name__)
diff --git a/tests/apps/queues/set_penalty/run-test b/tests/apps/queues/set_penalty/run-test
index 8d78211..f05773a 100755
--- a/tests/apps/queues/set_penalty/run-test
+++ b/tests/apps/queues/set_penalty/run-test
@@ -11,10 +11,7 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
-from twisted.internet import reactor, defer
-from starpy import manager
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/authenticate_extensions/run-test b/tests/apps/voicemail/authenticate_extensions/run-test
index 2b0aa13..160a34a 100755
--- a/tests/apps/voicemail/authenticate_extensions/run-test
+++ b/tests/apps/voicemail/authenticate_extensions/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.voicemail import VoiceMailState, VoiceMailTest
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/authenticate_invalid_mailbox/run-test b/tests/apps/voicemail/authenticate_invalid_mailbox/run-test
index 6d03bcd..69e13d1 100755
--- a/tests/apps/voicemail/authenticate_invalid_mailbox/run-test
+++ b/tests/apps/voicemail/authenticate_invalid_mailbox/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.voicemail import VoiceMailState, VoiceMailTest
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/authenticate_invalid_password/run-test b/tests/apps/voicemail/authenticate_invalid_password/run-test
index 8c340f9..c7ac145 100755
--- a/tests/apps/voicemail/authenticate_invalid_password/run-test
+++ b/tests/apps/voicemail/authenticate_invalid_password/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.voicemail import VoiceMailState, VoiceMailTest
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/authenticate_nominal/run-test b/tests/apps/voicemail/authenticate_nominal/run-test
index 4f61710..3907281 100755
--- a/tests/apps/voicemail/authenticate_nominal/run-test
+++ b/tests/apps/voicemail/authenticate_nominal/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.voicemail import VoiceMailTest, VoiceMailState
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/check_voicemail_callback/run-test b/tests/apps/voicemail/check_voicemail_callback/run-test
index 32b5764..585d60e 100755
--- a/tests/apps/voicemail/check_voicemail_callback/run-test
+++ b/tests/apps/voicemail/check_voicemail_callback/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_delete/run-test b/tests/apps/voicemail/check_voicemail_delete/run-test
index f754c75..f683a27 100755
--- a/tests/apps/voicemail/check_voicemail_delete/run-test
+++ b/tests/apps/voicemail/check_voicemail_delete/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_dialout/run-test b/tests/apps/voicemail/check_voicemail_dialout/run-test
index b575531..62aa439 100755
--- a/tests/apps/voicemail/check_voicemail_dialout/run-test
+++ b/tests/apps/voicemail/check_voicemail_dialout/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_envelope/run-test b/tests/apps/voicemail/check_voicemail_envelope/run-test
index bce3350..5a0d6ef 100755
--- a/tests/apps/voicemail/check_voicemail_envelope/run-test
+++ b/tests/apps/voicemail/check_voicemail_envelope/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_forward/run-test b/tests/apps/voicemail/check_voicemail_forward/run-test
index 5eb5b6c..e7db233 100755
--- a/tests/apps/voicemail/check_voicemail_forward/run-test
+++ b/tests/apps/voicemail/check_voicemail_forward/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_forward_hangup/run-test b/tests/apps/voicemail/check_voicemail_forward_hangup/run-test
index 773d0ce..af3339f 100755
--- a/tests/apps/voicemail/check_voicemail_forward_hangup/run-test
+++ b/tests/apps/voicemail/check_voicemail_forward_hangup/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test b/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test
index a901201..5742965 100755
--- a/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test
+++ b/tests/apps/voicemail/check_voicemail_forward_with_prepend/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_new_user/run-test b/tests/apps/voicemail/check_voicemail_new_user/run-test
index 63eb5cf..3ac7a98 100755
--- a/tests/apps/voicemail/check_voicemail_new_user/run-test
+++ b/tests/apps/voicemail/check_voicemail_new_user/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test b/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test
index 38dbaba..52838d6 100755
--- a/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test
+++ b/tests/apps/voicemail/check_voicemail_new_user_hangup/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_nominal/run-test b/tests/apps/voicemail/check_voicemail_nominal/run-test
index 3f08cdf..a711a17 100755
--- a/tests/apps/voicemail/check_voicemail_nominal/run-test
+++ b/tests/apps/voicemail/check_voicemail_nominal/run-test
@@ -9,17 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_options_change_password/run-test b/tests/apps/voicemail/check_voicemail_options_change_password/run-test
index 781fabb..7440773 100755
--- a/tests/apps/voicemail/check_voicemail_options_change_password/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_change_password/run-test
@@ -17,10 +17,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_options_change_password_spooldir/run-test b/tests/apps/voicemail/check_voicemail_options_change_password_spooldir/run-test
index 9bdf1f0..6edb7b2 100755
--- a/tests/apps/voicemail/check_voicemail_options_change_password_spooldir/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_change_password_spooldir/run-test
@@ -15,15 +15,10 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import TestCondition
from asterisk.voicemail import VoiceMailTest
from asterisk.voicemail import VoiceMailState
-from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.config import ConfigFile
diff --git a/tests/apps/voicemail/check_voicemail_options_record_busy/run-test b/tests/apps/voicemail/check_voicemail_options_record_busy/run-test
index 2c8bef2..24388b6 100755
--- a/tests/apps/voicemail/check_voicemail_options_record_busy/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_record_busy/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_options_record_name/run-test b/tests/apps/voicemail/check_voicemail_options_record_name/run-test
index f66286f..ebc9883 100755
--- a/tests/apps/voicemail/check_voicemail_options_record_name/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_record_name/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_options_record_temp/run-test b/tests/apps/voicemail/check_voicemail_options_record_temp/run-test
index 4b1bafd..e1f596e 100755
--- a/tests/apps/voicemail/check_voicemail_options_record_temp/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_record_temp/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_options_record_unavail/run-test b/tests/apps/voicemail/check_voicemail_options_record_unavail/run-test
index cacd2f9..cdc7e75 100755
--- a/tests/apps/voicemail/check_voicemail_options_record_unavail/run-test
+++ b/tests/apps/voicemail/check_voicemail_options_record_unavail/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_reply/run-test b/tests/apps/voicemail/check_voicemail_reply/run-test
index b119cea..8a97d78 100755
--- a/tests/apps/voicemail/check_voicemail_reply/run-test
+++ b/tests/apps/voicemail/check_voicemail_reply/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/check_voicemail_while_leaving_msg/run-test b/tests/apps/voicemail/check_voicemail_while_leaving_msg/run-test
index 4be96de..270556a 100755
--- a/tests/apps/voicemail/check_voicemail_while_leaving_msg/run-test
+++ b/tests/apps/voicemail/check_voicemail_while_leaving_msg/run-test
@@ -16,10 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
-from asterisk.test_state import TestStateController
-from asterisk.test_state import TestState
from asterisk.test_state import FailureTestState
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import TestCondition
diff --git a/tests/apps/voicemail/func_vmcount/run-test b/tests/apps/voicemail/func_vmcount/run-test
index 294f7be..d6b8970 100755
--- a/tests/apps/voicemail/func_vmcount/run-test
+++ b/tests/apps/voicemail/func_vmcount/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
diff --git a/tests/apps/voicemail/leave_voicemail_contexts/run-test b/tests/apps/voicemail/leave_voicemail_contexts/run-test
index 1f11ad0..a84f10c 100755
--- a/tests/apps/voicemail/leave_voicemail_contexts/run-test
+++ b/tests/apps/voicemail/leave_voicemail_contexts/run-test
@@ -16,8 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import VoiceMailState
from asterisk.voicemail import VoiceMailTest
diff --git a/tests/apps/voicemail/leave_voicemail_external_notification/run-test b/tests/apps/voicemail/leave_voicemail_external_notification/run-test
index 4497be6..8f40a83 100755
--- a/tests/apps/voicemail/leave_voicemail_external_notification/run-test
+++ b/tests/apps/voicemail/leave_voicemail_external_notification/run-test
@@ -17,7 +17,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
diff --git a/tests/apps/voicemail/leave_voicemail_forwarding/run-test b/tests/apps/voicemail/leave_voicemail_forwarding/run-test
index d05034a..7098acb 100755
--- a/tests/apps/voicemail/leave_voicemail_forwarding/run-test
+++ b/tests/apps/voicemail/leave_voicemail_forwarding/run-test
@@ -16,8 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import VoiceMailState
from asterisk.voicemail import VoiceMailTest
diff --git a/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test b/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test
index e3bcb51..f0cc5c2 100755
--- a/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test
+++ b/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test
@@ -17,8 +17,6 @@
sys.path.append("lib/python")
sys.path.append("tests/apps/voicemail")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import VoiceMailState
from asterisk.voicemail import VoiceMailTest
diff --git a/tests/apps/voicemail/leave_voicemail_nominal/run-test b/tests/apps/voicemail/leave_voicemail_nominal/run-test
index 5b6b400..705a1df 100755
--- a/tests/apps/voicemail/leave_voicemail_nominal/run-test
+++ b/tests/apps/voicemail/leave_voicemail_nominal/run-test
@@ -17,8 +17,6 @@
sys.path.append("lib/python")
sys.path.append("tests/apps/voicemail")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import VoiceMailState
from asterisk.voicemail import VoiceMailTest
diff --git a/tests/apps/voicemail/leave_voicemail_priority/run-test b/tests/apps/voicemail/leave_voicemail_priority/run-test
index 8bdc845..5ed7f9e 100755
--- a/tests/apps/voicemail/leave_voicemail_priority/run-test
+++ b/tests/apps/voicemail/leave_voicemail_priority/run-test
@@ -16,8 +16,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
-from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.voicemail import VoiceMailState
from asterisk.voicemail import VoiceMailTest
diff --git a/tests/apps/voicemail/play_message/run-test b/tests/apps/voicemail/play_message/run-test
index 32482e7..9d04182 100755
--- a/tests/apps/voicemail/play_message/run-test
+++ b/tests/apps/voicemail/play_message/run-test
@@ -9,17 +9,14 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
-from twisted.internet import defer
logger = logging.getLogger(__name__)
diff --git a/tests/apps/voicemail/polling/poll_multiple_mailboxes/run-test b/tests/apps/voicemail/polling/poll_multiple_mailboxes/run-test
index 4db0314..7900d87 100755
--- a/tests/apps/voicemail/polling/poll_multiple_mailboxes/run-test
+++ b/tests/apps/voicemail/polling/poll_multiple_mailboxes/run-test
@@ -11,7 +11,6 @@
import sys
import logging
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from twisted.internet import reactor
diff --git a/tests/apps/voicemail/polling/poll_no_subs/run-test b/tests/apps/voicemail/polling/poll_no_subs/run-test
index 0d6a1c9..6aeb8ba 100755
--- a/tests/apps/voicemail/polling/poll_no_subs/run-test
+++ b/tests/apps/voicemail/polling/poll_no_subs/run-test
@@ -11,7 +11,6 @@
import sys
import logging
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from twisted.internet import reactor
diff --git a/tests/apps/voicemail/polling/poll_same_mailbox/run-test b/tests/apps/voicemail/polling/poll_same_mailbox/run-test
index 78d0773..9aff5ec 100755
--- a/tests/apps/voicemail/polling/poll_same_mailbox/run-test
+++ b/tests/apps/voicemail/polling/poll_same_mailbox/run-test
@@ -11,7 +11,6 @@
import sys
import logging
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from twisted.internet import reactor
diff --git a/tests/apps/voicemail/polling/poll_single_mailbox/run-test b/tests/apps/voicemail/polling/poll_single_mailbox/run-test
index df85667..649a7f1 100755
--- a/tests/apps/voicemail/polling/poll_single_mailbox/run-test
+++ b/tests/apps/voicemail/polling/poll_single_mailbox/run-test
@@ -11,7 +11,6 @@
import sys
import logging
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from twisted.internet import reactor
diff --git a/tests/apps/voicemail/polling/poll_sub_unsub/run-test b/tests/apps/voicemail/polling/poll_sub_unsub/run-test
index 30dd98e..56666b7 100755
--- a/tests/apps/voicemail/polling/poll_sub_unsub/run-test
+++ b/tests/apps/voicemail/polling/poll_sub_unsub/run-test
@@ -11,7 +11,6 @@
import sys
import logging
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.voicemail import VoiceMailMailboxManagement
from asterisk.sipp import SIPpScenario
diff --git a/tests/blind-transfer-parkingtimeout/run-test b/tests/blind-transfer-parkingtimeout/run-test
index 484090f..5a22a21 100755
--- a/tests/blind-transfer-parkingtimeout/run-test
+++ b/tests/blind-transfer-parkingtimeout/run-test
@@ -8,9 +8,6 @@
'''
import sys
-import os
-import math
-from twisted.application import service, internet
from twisted.internet import reactor
from starpy import fastagi
diff --git a/tests/bridge/bridge_action/bridge_action.py b/tests/bridge/bridge_action/bridge_action.py
index 83329c1..3682ae5 100644
--- a/tests/bridge/bridge_action/bridge_action.py
+++ b/tests/bridge/bridge_action/bridge_action.py
@@ -7,7 +7,6 @@
the GNU General Public License Version 2.
'''
-import sys
import logging
LOGGER = logging.getLogger(__name__)
diff --git a/tests/bridge/connected_line_update/Tester.py b/tests/bridge/connected_line_update/Tester.py
index 01934d9..4b34396 100755
--- a/tests/bridge/connected_line_update/Tester.py
+++ b/tests/bridge/connected_line_update/Tester.py
@@ -9,7 +9,6 @@
import sys
import logging
-import time
sys.path.append("lib/python")
diff --git a/tests/channels/SIP/SDP_attribute_passthrough/run-test b/tests/channels/SIP/SDP_attribute_passthrough/run-test
index 5512e5a..dfffe2b 100755
--- a/tests/channels/SIP/SDP_attribute_passthrough/run-test
+++ b/tests/channels/SIP/SDP_attribute_passthrough/run-test
@@ -14,7 +14,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/acl_call/run-test b/tests/channels/SIP/acl_call/run-test
index adf535b..5d78715 100755
--- a/tests/channels/SIP/acl_call/run-test
+++ b/tests/channels/SIP/acl_call/run-test
@@ -1,8 +1,6 @@
#!/usr/bin/env python
import sys
-import logging
-import logging.config
import os
import shutil
from twisted.internet import reactor
diff --git a/tests/channels/SIP/generic_ccss/run-test b/tests/channels/SIP/generic_ccss/run-test
index a16255c..eba234a 100755
--- a/tests/channels/SIP/generic_ccss/run-test
+++ b/tests/channels/SIP/generic_ccss/run-test
@@ -13,7 +13,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/handle_response_address_incomplete/run-test b/tests/channels/SIP/handle_response_address_incomplete/run-test
index 1d8e9d5..cbaf666 100755
--- a/tests/channels/SIP/handle_response_address_incomplete/run-test
+++ b/tests/channels/SIP/handle_response_address_incomplete/run-test
@@ -13,7 +13,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/hangupcause/run-test b/tests/channels/SIP/hangupcause/run-test
index 1430329..65141e2 100755
--- a/tests/channels/SIP/hangupcause/run-test
+++ b/tests/channels/SIP/hangupcause/run-test
@@ -13,7 +13,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/noload_res_srtp/run-test b/tests/channels/SIP/noload_res_srtp/run-test
index 3d0d1ab..f9f3646 100755
--- a/tests/channels/SIP/noload_res_srtp/run-test
+++ b/tests/channels/SIP/noload_res_srtp/run-test
@@ -8,9 +8,7 @@
'''
import sys
-import os
-import time
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test b/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
index fde8a7b..3272245 100755
--- a/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
+++ b/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
@@ -8,9 +8,7 @@
'''
import sys
-import os
-import time
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/channels/SIP/pcap_demo/run-test b/tests/channels/SIP/pcap_demo/run-test
index 7b3122b..8400a85 100755
--- a/tests/channels/SIP/pcap_demo/run-test
+++ b/tests/channels/SIP/pcap_demo/run-test
@@ -1,8 +1,6 @@
#!/usr/bin/env python
-import re
import sys
-import os
import logging
sys.path.append("lib/python")
diff --git a/tests/channels/SIP/realtime_nosipregs/run-test b/tests/channels/SIP/realtime_nosipregs/run-test
index fe5d788..ec1c777 100755
--- a/tests/channels/SIP/realtime_nosipregs/run-test
+++ b/tests/channels/SIP/realtime_nosipregs/run-test
@@ -19,7 +19,6 @@
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario, SIPpScenarioSequence
from twisted.internet import reactor
-from starpy import manager
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
DB_PATH = TEST_DIR + "/realtime.sqlite"
diff --git a/tests/channels/SIP/realtime_sipregs/run-test b/tests/channels/SIP/realtime_sipregs/run-test
index ba41b0f..5037a8c 100755
--- a/tests/channels/SIP/realtime_sipregs/run-test
+++ b/tests/channels/SIP/realtime_sipregs/run-test
@@ -19,7 +19,6 @@
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario, SIPpScenarioSequence
from twisted.internet import reactor
-from starpy import manager
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
diff --git a/tests/channels/SIP/refer_replaces_to_self/run-test b/tests/channels/SIP/refer_replaces_to_self/run-test
index 1ae846c..2fb31f6 100755
--- a/tests/channels/SIP/refer_replaces_to_self/run-test
+++ b/tests/channels/SIP/refer_replaces_to_self/run-test
@@ -8,7 +8,6 @@
'''
import sys
-import os
from twisted.internet import reactor
import pjsua as pj
import threading
diff --git a/tests/channels/SIP/secure_bridge_media/run-test b/tests/channels/SIP/secure_bridge_media/run-test
index 4b453ed..c61fa6d 100755
--- a/tests/channels/SIP/secure_bridge_media/run-test
+++ b/tests/channels/SIP/secure_bridge_media/run-test
@@ -8,9 +8,7 @@
'''
import sys
-import os
-import time
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test b/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
index f7da145..df1babe 100755
--- a/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
+++ b/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
@@ -13,12 +13,9 @@
import subprocess
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
-from starpy import manager
+from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test b/tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test
index 3ad650d..3caf7c7 100755
--- a/tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test
+++ b/tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test
@@ -13,12 +13,9 @@
import subprocess
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
-from starpy import manager
+from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test b/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
index 0ff23a4..5f3a398 100755
--- a/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
+++ b/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
@@ -13,12 +13,9 @@
import subprocess
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
-from starpy import manager
+from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test b/tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test
index 0731eba..092a2be 100755
--- a/tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test
+++ b/tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test
@@ -13,12 +13,9 @@
import subprocess
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
-from starpy import manager
+from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_cause/run-test b/tests/channels/SIP/sip_cause/run-test
index 3c6370b..1675302 100755
--- a/tests/channels/SIP/sip_cause/run-test
+++ b/tests/channels/SIP/sip_cause/run-test
@@ -13,7 +13,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_custom_presence/multiple_state_change/run-test b/tests/channels/SIP/sip_custom_presence/multiple_state_change/run-test
index 607b63c..1b2467a 100755
--- a/tests/channels/SIP/sip_custom_presence/multiple_state_change/run-test
+++ b/tests/channels/SIP/sip_custom_presence/multiple_state_change/run-test
@@ -12,7 +12,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_custom_presence/nominal_state_change/run-test b/tests/channels/SIP/sip_custom_presence/nominal_state_change/run-test
index 66653ee..39da7d8 100755
--- a/tests/channels/SIP/sip_custom_presence/nominal_state_change/run-test
+++ b/tests/channels/SIP/sip_custom_presence/nominal_state_change/run-test
@@ -12,7 +12,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_custom_presence/non_digium_state_change/run-test b/tests/channels/SIP/sip_custom_presence/non_digium_state_change/run-test
index 6df6f38..9f190cb 100755
--- a/tests/channels/SIP/sip_custom_presence/non_digium_state_change/run-test
+++ b/tests/channels/SIP/sip_custom_presence/non_digium_state_change/run-test
@@ -12,7 +12,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_custom_presence/resubscribe/run-test b/tests/channels/SIP/sip_custom_presence/resubscribe/run-test
index ab4288f..1174bc0 100755
--- a/tests/channels/SIP/sip_custom_presence/resubscribe/run-test
+++ b/tests/channels/SIP/sip_custom_presence/resubscribe/run-test
@@ -12,7 +12,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_hold/run-test b/tests/channels/SIP/sip_hold/run-test
index d164f88..8f449e5 100755
--- a/tests/channels/SIP/sip_hold/run-test
+++ b/tests/channels/SIP/sip_hold/run-test
@@ -8,12 +8,10 @@
'''
import sys
-import os
import logging
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_hold_direct_media/run-test b/tests/channels/SIP/sip_hold_direct_media/run-test
index 6eb47d5..8edb612 100755
--- a/tests/channels/SIP/sip_hold_direct_media/run-test
+++ b/tests/channels/SIP/sip_hold_direct_media/run-test
@@ -8,12 +8,10 @@
'''
import sys
-import os
import logging
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/SIP/sip_one_legged_transfer_v6/run-test b/tests/channels/SIP/sip_one_legged_transfer_v6/run-test
index 7d672a4..387f1fb 100755
--- a/tests/channels/SIP/sip_one_legged_transfer_v6/run-test
+++ b/tests/channels/SIP/sip_one_legged_transfer_v6/run-test
@@ -12,8 +12,7 @@
import os
import signal
import subprocess
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
from starpy import manager
sys.path.append("lib/python")
diff --git a/tests/channels/SIP/sip_register_domain_acl/run-test b/tests/channels/SIP/sip_register_domain_acl/run-test
index edc8f2f..553eb66 100755
--- a/tests/channels/SIP/sip_register_domain_acl/run-test
+++ b/tests/channels/SIP/sip_register_domain_acl/run-test
@@ -16,7 +16,6 @@
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario, SIPpScenarioSequence
from twisted.internet import reactor
-from starpy import manager
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_srtp/srtp_call/run-test b/tests/channels/SIP/sip_srtp/srtp_call/run-test
index e96902b..ee9c2fc 100755
--- a/tests/channels/SIP/sip_srtp/srtp_call/run-test
+++ b/tests/channels/SIP/sip_srtp/srtp_call/run-test
@@ -8,9 +8,7 @@
'''
import sys
-import os
-import time
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/channels/SIP/sip_tls_call/run-test b/tests/channels/SIP/sip_tls_call/run-test
index 92173a3..d117544 100755
--- a/tests/channels/SIP/sip_tls_call/run-test
+++ b/tests/channels/SIP/sip_tls_call/run-test
@@ -10,17 +10,12 @@
import fileinput
import sys
import os
-import time
import logging
import shutil
-from twisted.internet import reactor, defer
-from starpy import fastagi
+from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
-from asterisk.cdr import AsteriskCSVCDR, AsteriskCSVCDRLine
-from starpy import manager
LOGGER = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/sip_tls_register/run-test b/tests/channels/SIP/sip_tls_register/run-test
index 41384e2..71baf62 100755
--- a/tests/channels/SIP/sip_tls_register/run-test
+++ b/tests/channels/SIP/sip_tls_register/run-test
@@ -6,18 +6,16 @@
This program is free software, distributed under the terms of
the GNU General Public License Version 2.
'''
-import fileinput
import sys
import os
import shutil
import logging
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
from asterisk.test_suite_utils import file_replace_string
from asterisk.sipp import SIPpScenario
-from starpy import manager
logger = logging.getLogger(__name__)
diff --git a/tests/channels/SIP/tcpauthlimit/tcpauthlimit.py b/tests/channels/SIP/tcpauthlimit/tcpauthlimit.py
index b21fa0f..f597417 100755
--- a/tests/channels/SIP/tcpauthlimit/tcpauthlimit.py
+++ b/tests/channels/SIP/tcpauthlimit/tcpauthlimit.py
@@ -7,7 +7,6 @@
the GNU General Public License Version 2.
'''
-import sys
import logging
from sipp_scenario import SIPpScenarioWrapper
diff --git a/tests/channels/iax2/hangupcause/run-test b/tests/channels/iax2/hangupcause/run-test
index 4a06dcc..58e3ee9 100755
--- a/tests/channels/iax2/hangupcause/run-test
+++ b/tests/channels/iax2/hangupcause/run-test
@@ -13,7 +13,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/channels/pjsip/acl_call/run-test b/tests/channels/pjsip/acl_call/run-test
index de3ed96..1f1d263 100755
--- a/tests/channels/pjsip/acl_call/run-test
+++ b/tests/channels/pjsip/acl_call/run-test
@@ -1,8 +1,6 @@
#!/usr/bin/env python
import sys
-import logging
-import logging.config
import os
import shutil
from twisted.internet import reactor
diff --git a/tests/channels/pjsip/call_pickup/run-test b/tests/channels/pjsip/call_pickup/run-test
index 1b7fd5f..b52e705 100755
--- a/tests/channels/pjsip/call_pickup/run-test
+++ b/tests/channels/pjsip/call_pickup/run-test
@@ -9,14 +9,12 @@
'''
import sys
-import os
import logging
import re
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/channels/pjsip/rtp_ptime/non-transcode/run-test b/tests/channels/pjsip/rtp_ptime/non-transcode/run-test
index 9eb97d1..96dfff7 100755
--- a/tests/channels/pjsip/rtp_ptime/non-transcode/run-test
+++ b/tests/channels/pjsip/rtp_ptime/non-transcode/run-test
@@ -5,7 +5,6 @@
import logging
import signal
import subprocess
-import time
sys.path.append("lib/python")
sys.path.append("utils")
diff --git a/tests/channels/pjsip/rtp_ptime/transcode/run-test b/tests/channels/pjsip/rtp_ptime/transcode/run-test
index e17cb8d..f9ae585 100755
--- a/tests/channels/pjsip/rtp_ptime/transcode/run-test
+++ b/tests/channels/pjsip/rtp_ptime/transcode/run-test
@@ -5,7 +5,6 @@
import logging
import signal
import subprocess
-import time
sys.path.append("lib/python")
sys.path.append("utils")
diff --git a/tests/channels/pjsip/sdp_offer_answer/attribute_passthrough/speex_h263_h264/run-test b/tests/channels/pjsip/sdp_offer_answer/attribute_passthrough/speex_h263_h264/run-test
index 062ffe8..16f0e37 100755
--- a/tests/channels/pjsip/sdp_offer_answer/attribute_passthrough/speex_h263_h264/run-test
+++ b/tests/channels/pjsip/sdp_offer_answer/attribute_passthrough/speex_h263_h264/run-test
@@ -14,7 +14,6 @@
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
from asterisk.sipp import SIPpScenario
from twisted.internet import reactor
diff --git a/tests/channels/pjsip/subscriptions/presence/verify_bodies/presence.py b/tests/channels/pjsip/subscriptions/presence/verify_bodies/presence.py
index bbff8f8..2ef8d4f 100644
--- a/tests/channels/pjsip/subscriptions/presence/verify_bodies/presence.py
+++ b/tests/channels/pjsip/subscriptions/presence/verify_bodies/presence.py
@@ -16,7 +16,6 @@
sys.path.append('lib/python')
from asterisk.pcap import VOIPListener
-from twisted.internet import reactor
LOGGER = logging.getLogger(__name__)
diff --git a/tests/codecs/audio_analyzer.py b/tests/codecs/audio_analyzer.py
index c897c45..9c01928 100644
--- a/tests/codecs/audio_analyzer.py
+++ b/tests/codecs/audio_analyzer.py
@@ -8,12 +8,10 @@
'''
import os
-import shutil
import sys
import logging
from twisted.internet import reactor
-from asterisk import ami
from asterisk import ari
import tonetest
diff --git a/tests/codecs/rtp_analyzer.py b/tests/codecs/rtp_analyzer.py
index 74f161a..987b9aa 100644
--- a/tests/codecs/rtp_analyzer.py
+++ b/tests/codecs/rtp_analyzer.py
@@ -9,7 +9,6 @@
import sys
import logging
-from twisted.internet import reactor
sys.path.append("lib/python")
diff --git a/tests/fastagi/channel-status/run-test b/tests/fastagi/channel-status/run-test
index 411c545..7271905 100755
--- a/tests/fastagi/channel-status/run-test
+++ b/tests/fastagi/channel-status/run-test
@@ -11,7 +11,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/connect/run-test b/tests/fastagi/connect/run-test
index 30fdad5..491c96a 100755
--- a/tests/fastagi/connect/run-test
+++ b/tests/fastagi/connect/run-test
@@ -11,7 +11,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/control-stream-file/run-test b/tests/fastagi/control-stream-file/run-test
index d6d02d4..3dbe153 100755
--- a/tests/fastagi/control-stream-file/run-test
+++ b/tests/fastagi/control-stream-file/run-test
@@ -13,7 +13,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/fastagi/database/run-test b/tests/fastagi/database/run-test
index c665c23..7df64f4 100755
--- a/tests/fastagi/database/run-test
+++ b/tests/fastagi/database/run-test
@@ -11,7 +11,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/execute/run-test b/tests/fastagi/execute/run-test
index c2e6690..cdd26f8 100755
--- a/tests/fastagi/execute/run-test
+++ b/tests/fastagi/execute/run-test
@@ -9,11 +9,9 @@
"""
import sys
-import os
import logging
from twisted.internet import reactor
-from starpy import fastagi
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/get-data/run-test b/tests/fastagi/get-data/run-test
index 56344e1..a86774c 100755
--- a/tests/fastagi/get-data/run-test
+++ b/tests/fastagi/get-data/run-test
@@ -9,11 +9,9 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
-from starpy import fastagi
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/hangup/run-test b/tests/fastagi/hangup/run-test
index cd4b12d..477f78b 100755
--- a/tests/fastagi/hangup/run-test
+++ b/tests/fastagi/hangup/run-test
@@ -9,12 +9,9 @@
'''
import sys
-import os
-import time
import logging
from twisted.internet import reactor
-from starpy import fastagi
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/record-file/run-test b/tests/fastagi/record-file/run-test
index 0289219..b649001 100755
--- a/tests/fastagi/record-file/run-test
+++ b/tests/fastagi/record-file/run-test
@@ -10,10 +10,8 @@
import sys
import os
from twisted.internet import reactor
-from starpy import fastagi
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
testdir = "tests/fastagi"
diff --git a/tests/fastagi/say-alpha/run-test b/tests/fastagi/say-alpha/run-test
index 71245bc..357e846 100755
--- a/tests/fastagi/say-alpha/run-test
+++ b/tests/fastagi/say-alpha/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-date/run-test b/tests/fastagi/say-date/run-test
index f3cff58..f0cd3e5 100755
--- a/tests/fastagi/say-date/run-test
+++ b/tests/fastagi/say-date/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-datetime/run-test b/tests/fastagi/say-datetime/run-test
index 1daa979..fd21991 100755
--- a/tests/fastagi/say-datetime/run-test
+++ b/tests/fastagi/say-datetime/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-digits/run-test b/tests/fastagi/say-digits/run-test
index d70c27e..ca79722 100755
--- a/tests/fastagi/say-digits/run-test
+++ b/tests/fastagi/say-digits/run-test
@@ -8,7 +8,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-number/run-test b/tests/fastagi/say-number/run-test
index 3730c2b..cefd31d 100755
--- a/tests/fastagi/say-number/run-test
+++ b/tests/fastagi/say-number/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-phonetic/run-test b/tests/fastagi/say-phonetic/run-test
index 2d85762..8c8a59a 100755
--- a/tests/fastagi/say-phonetic/run-test
+++ b/tests/fastagi/say-phonetic/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/say-time/run-test b/tests/fastagi/say-time/run-test
index a4a0e52..2f48664 100755
--- a/tests/fastagi/say-time/run-test
+++ b/tests/fastagi/say-time/run-test
@@ -9,7 +9,6 @@
'''
import sys
-import os
import logging
from twisted.internet import reactor
diff --git a/tests/fastagi/stream-file/run-test b/tests/fastagi/stream-file/run-test
index 9a61ad7..d74befe 100755
--- a/tests/fastagi/stream-file/run-test
+++ b/tests/fastagi/stream-file/run-test
@@ -11,7 +11,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
diff --git a/tests/fastagi/wait-for-digit/run-test b/tests/fastagi/wait-for-digit/run-test
index e867e80..047b627 100755
--- a/tests/fastagi/wait-for-digit/run-test
+++ b/tests/fastagi/wait-for-digit/run-test
@@ -8,7 +8,6 @@
'''
import sys
-import os
from twisted.internet import reactor
from starpy import fastagi
diff --git a/tests/fax/pjsip/gateway_g711_t38/run-test b/tests/fax/pjsip/gateway_g711_t38/run-test
index bf4691d..7f9fa0b 100755
--- a/tests/fax/pjsip/gateway_g711_t38/run-test
+++ b/tests/fax/pjsip/gateway_g711_t38/run-test
@@ -12,13 +12,11 @@
import sys
import logging
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/fax/pjsip/gateway_native_t38/run-test b/tests/fax/pjsip/gateway_native_t38/run-test
index 7603a67..1bd7b3d 100755
--- a/tests/fax/pjsip/gateway_native_t38/run-test
+++ b/tests/fax/pjsip/gateway_native_t38/run-test
@@ -11,13 +11,11 @@
import sys
import logging
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/fax/pjsip/gateway_t38_g711_rx/run-test b/tests/fax/pjsip/gateway_t38_g711_rx/run-test
index cace381..23cc10b 100755
--- a/tests/fax/pjsip/gateway_t38_g711_rx/run-test
+++ b/tests/fax/pjsip/gateway_t38_g711_rx/run-test
@@ -11,13 +11,11 @@
import sys
import logging
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/fax/pjsip/gateway_t38_g711_tx/run-test b/tests/fax/pjsip/gateway_t38_g711_tx/run-test
index 4298385..947997b 100755
--- a/tests/fax/pjsip/gateway_t38_g711_tx/run-test
+++ b/tests/fax/pjsip/gateway_t38_g711_tx/run-test
@@ -11,13 +11,11 @@
import sys
import logging
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/fax/pjsip/t38/run-test b/tests/fax/pjsip/t38/run-test
index 29b0604..d44a59c 100755
--- a/tests/fax/pjsip/t38/run-test
+++ b/tests/fax/pjsip/t38/run-test
@@ -11,13 +11,11 @@
import sys
import logging
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/fax/pjsip/t38_fast_reject/run-test b/tests/fax/pjsip/t38_fast_reject/run-test
index c8b5d9a..1dd58b9 100755
--- a/tests/fax/pjsip/t38_fast_reject/run-test
+++ b/tests/fax/pjsip/t38_fast_reject/run-test
@@ -10,19 +10,14 @@
import sys
import os
-import re
-import shutil
import logging
-import signal
import subprocess
-import time
from twisted.internet import reactor
sys.path.append("lib/python")
sys.path.append("utils")
from tempfile import NamedTemporaryFile
-from asterisk.asterisk import Asterisk
from asterisk.sipp import SIPpTest
logger = logging.getLogger(__name__)
diff --git a/tests/fax/sip/gateway_g711_t38/run-test b/tests/fax/sip/gateway_g711_t38/run-test
index 82ec98b..8dec923 100755
--- a/tests/fax/sip/gateway_g711_t38/run-test
+++ b/tests/fax/sip/gateway_g711_t38/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_mix1/run-test b/tests/fax/sip/gateway_mix1/run-test
index 82ec98b..8dec923 100755
--- a/tests/fax/sip/gateway_mix1/run-test
+++ b/tests/fax/sip/gateway_mix1/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_mix2/run-test b/tests/fax/sip/gateway_mix2/run-test
index 73334b8..1c72423 100755
--- a/tests/fax/sip/gateway_mix2/run-test
+++ b/tests/fax/sip/gateway_mix2/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_mix3/run-test b/tests/fax/sip/gateway_mix3/run-test
index d62aa81..a02325e 100755
--- a/tests/fax/sip/gateway_mix3/run-test
+++ b/tests/fax/sip/gateway_mix3/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_mix4/run-test b/tests/fax/sip/gateway_mix4/run-test
index 82ec98b..8dec923 100755
--- a/tests/fax/sip/gateway_mix4/run-test
+++ b/tests/fax/sip/gateway_mix4/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_native_t38/run-test b/tests/fax/sip/gateway_native_t38/run-test
index 5782afd..1592c70 100755
--- a/tests/fax/sip/gateway_native_t38/run-test
+++ b/tests/fax/sip/gateway_native_t38/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_native_t38_ced/run-test b/tests/fax/sip/gateway_native_t38_ced/run-test
index 7f95f97..c992c2a 100755
--- a/tests/fax/sip/gateway_native_t38_ced/run-test
+++ b/tests/fax/sip/gateway_native_t38_ced/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_no_t38/run-test b/tests/fax/sip/gateway_no_t38/run-test
index 433aa4f..fff3de4 100755
--- a/tests/fax/sip/gateway_no_t38/run-test
+++ b/tests/fax/sip/gateway_no_t38/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_t38_g711/run-test b/tests/fax/sip/gateway_t38_g711/run-test
index d62aa81..a02325e 100755
--- a/tests/fax/sip/gateway_t38_g711/run-test
+++ b/tests/fax/sip/gateway_t38_g711/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_timeout1/run-test b/tests/fax/sip/gateway_timeout1/run-test
index 2024eb9..368b896 100755
--- a/tests/fax/sip/gateway_timeout1/run-test
+++ b/tests/fax/sip/gateway_timeout1/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_timeout2/run-test b/tests/fax/sip/gateway_timeout2/run-test
index ba3003a..84e2cb4 100755
--- a/tests/fax/sip/gateway_timeout2/run-test
+++ b/tests/fax/sip/gateway_timeout2/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_timeout3/run-test b/tests/fax/sip/gateway_timeout3/run-test
index d579775..af25d79 100755
--- a/tests/fax/sip/gateway_timeout3/run-test
+++ b/tests/fax/sip/gateway_timeout3/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_timeout4/run-test b/tests/fax/sip/gateway_timeout4/run-test
index 326d788..7a80e16 100755
--- a/tests/fax/sip/gateway_timeout4/run-test
+++ b/tests/fax/sip/gateway_timeout4/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/gateway_timeout5/run-test b/tests/fax/sip/gateway_timeout5/run-test
index 8789aa5..28a0d54 100755
--- a/tests/fax/sip/gateway_timeout5/run-test
+++ b/tests/fax/sip/gateway_timeout5/run-test
@@ -10,13 +10,11 @@
import sys
import os
-import re
import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class GatewayTest(TestCase):
diff --git a/tests/fax/sip/voxfax_g711/run-test b/tests/fax/sip/voxfax_g711/run-test
index 89193b0..f566caa 100755
--- a/tests/fax/sip/voxfax_g711/run-test
+++ b/tests/fax/sip/voxfax_g711/run-test
@@ -13,7 +13,6 @@
import sys
import logging
-import re
import os
import shutil
diff --git a/tests/feature_attended_transfer/run-test b/tests/feature_attended_transfer/run-test
index b3a58a6..6adaf0f 100755
--- a/tests/feature_attended_transfer/run-test
+++ b/tests/feature_attended_transfer/run-test
@@ -9,12 +9,9 @@
"""
import sys
-import os
-import math
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/feature_blonde_transfer/run-test b/tests/feature_blonde_transfer/run-test
index 117bbe0..68ac099 100755
--- a/tests/feature_blonde_transfer/run-test
+++ b/tests/feature_blonde_transfer/run-test
@@ -9,12 +9,9 @@
'''
import sys
-import os
-import math
import logging
-from twisted.application import service, internet
-from twisted.internet import reactor, defer
+from twisted.internet import reactor
sys.path.append("lib/python")
from asterisk.test_case import TestCase
diff --git a/tests/feature_call_pickup/run-test b/tests/feature_call_pickup/run-test
index 82a46ba..db2d976 100755
--- a/tests/feature_call_pickup/run-test
+++ b/tests/feature_call_pickup/run-test
@@ -8,14 +8,12 @@
'''
import sys
-import os
import logging
import re
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/funcs/func_presencestate/run-test b/tests/funcs/func_presencestate/run-test
index 74d77f6..740d14f 100755
--- a/tests/funcs/func_presencestate/run-test
+++ b/tests/funcs/func_presencestate/run-test
@@ -12,7 +12,6 @@
from twisted.internet import reactor
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class func_presencestate_test(TestCase):
diff --git a/tests/funcs/func_srv/run-test b/tests/funcs/func_srv/run-test
index bde0265..23ce2c0 100755
--- a/tests/funcs/func_srv/run-test
+++ b/tests/funcs/func_srv/run-test
@@ -12,7 +12,6 @@
from twisted.internet import reactor
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class srv_record():
diff --git a/tests/hep/hep_capture_node.py b/tests/hep/hep_capture_node.py
index 3e7feae..0fb081e 100644
--- a/tests/hep/hep_capture_node.py
+++ b/tests/hep/hep_capture_node.py
@@ -15,7 +15,6 @@
import socket
import logging
import re
-import sys
import json
from twisted.internet.protocol import DatagramProtocol
diff --git a/tests/http_server/servername/run-test b/tests/http_server/servername/run-test
index ef08392..9dd7a0d 100755
--- a/tests/http_server/servername/run-test
+++ b/tests/http_server/servername/run-test
@@ -16,7 +16,6 @@
sys.path.append("lib/python")
from twisted.internet import reactor
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/config/ManagerConfigTest.py b/tests/manager/config/ManagerConfigTest.py
index fe2e65f..821155e 100644
--- a/tests/manager/config/ManagerConfigTest.py
+++ b/tests/manager/config/ManagerConfigTest.py
@@ -8,7 +8,6 @@
'''
import sys
-import os
import logging
sys.path.append("lib/python")
diff --git a/tests/manager/danger/dangerous/run-test b/tests/manager/danger/dangerous/run-test
index b71c2aa..bbae73b 100755
--- a/tests/manager/danger/dangerous/run-test
+++ b/tests/manager/danger/dangerous/run-test
@@ -13,7 +13,6 @@
import logging.config
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/danger/safe/run-test b/tests/manager/danger/safe/run-test
index cb7edc7..1d81d19 100755
--- a/tests/manager/danger/safe/run-test
+++ b/tests/manager/danger/safe/run-test
@@ -13,7 +13,6 @@
import logging.config
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/device_state_list/ami_device_state_list.py b/tests/manager/device_state_list/ami_device_state_list.py
index 105780e..0d138d1 100755
--- a/tests/manager/device_state_list/ami_device_state_list.py
+++ b/tests/manager/device_state_list/ami_device_state_list.py
@@ -9,7 +9,6 @@
"""
import logging
-from asterisk.test_case import TestCase
from twisted.internet import defer
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/exten_state_list/ami_exten_state_list.py b/tests/manager/exten_state_list/ami_exten_state_list.py
index 90bdc4f..e6bbdb7 100755
--- a/tests/manager/exten_state_list/ami_exten_state_list.py
+++ b/tests/manager/exten_state_list/ami_exten_state_list.py
@@ -9,7 +9,6 @@
"""
import logging
-from asterisk.test_case import TestCase
from twisted.internet import defer
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/login/run-test b/tests/manager/login/run-test
index ba9f7bf..ef4f29e 100755
--- a/tests/manager/login/run-test
+++ b/tests/manager/login/run-test
@@ -13,7 +13,6 @@
import logging.config
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/manager/presence_state_list/ami_presence_state_list.py b/tests/manager/presence_state_list/ami_presence_state_list.py
index f67c386..15350a9 100755
--- a/tests/manager/presence_state_list/ami_presence_state_list.py
+++ b/tests/manager/presence_state_list/ami_presence_state_list.py
@@ -9,7 +9,6 @@
"""
import logging
-from asterisk.test_case import TestCase
from twisted.internet import defer
LOGGER = logging.getLogger(__name__)
diff --git a/tests/pbx/call_file_retries_alwaysdelete/retries_alwaysdelete.py b/tests/pbx/call_file_retries_alwaysdelete/retries_alwaysdelete.py
index 0ed22fc..fbe7464 100755
--- a/tests/pbx/call_file_retries_alwaysdelete/retries_alwaysdelete.py
+++ b/tests/pbx/call_file_retries_alwaysdelete/retries_alwaysdelete.py
@@ -11,7 +11,6 @@
import os
import logging
-from twisted.internet import reactor
LOGGER = logging.getLogger(__name__)
diff --git a/tests/pbx/merge_contexts/run-test b/tests/pbx/merge_contexts/run-test
index 022b2ce..feda368 100755
--- a/tests/pbx/merge_contexts/run-test
+++ b/tests/pbx/merge_contexts/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class PbxMergeContextsTest(TestCase):
diff --git a/tests/pbx/pbx_lua_background/run-test b/tests/pbx/pbx_lua_background/run-test
index f859293..98307d4 100755
--- a/tests/pbx/pbx_lua_background/run-test
+++ b/tests/pbx/pbx_lua_background/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class PbxLuaTest(TestCase):
diff --git a/tests/pbx/pbx_lua_goto/run-test b/tests/pbx/pbx_lua_goto/run-test
index f859293..98307d4 100755
--- a/tests/pbx/pbx_lua_goto/run-test
+++ b/tests/pbx/pbx_lua_goto/run-test
@@ -9,14 +9,10 @@
'''
import sys
-import os
-import re
-import shutil
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
class PbxLuaTest(TestCase):
diff --git a/tests/regressions/M18882/run-test b/tests/regressions/M18882/run-test
index e3cba87..afe1ed5 100755
--- a/tests/regressions/M18882/run-test
+++ b/tests/regressions/M18882/run-test
@@ -8,11 +8,9 @@
'''
import sys
-import logging
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
diff --git a/tests/rest_api/CORS/run-test b/tests/rest_api/CORS/run-test
index 977192d..62d73c5 100755
--- a/tests/rest_api/CORS/run-test
+++ b/tests/rest_api/CORS/run-test
@@ -15,7 +15,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/rest_api/authentication/run-test b/tests/rest_api/authentication/run-test
index d4f6b25..fd11df5 100755
--- a/tests/rest_api/authentication/run-test
+++ b/tests/rest_api/authentication/run-test
@@ -15,7 +15,6 @@
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/rest_api/content-type/run-test b/tests/rest_api/content-type/run-test
index 8b87e70..5290979 100755
--- a/tests/rest_api/content-type/run-test
+++ b/tests/rest_api/content-type/run-test
@@ -11,11 +11,9 @@
import requests
import sys
-from requests import codes
from twisted.internet import reactor
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
LOGGER = logging.getLogger(__name__)
diff --git a/tests/rest_api/external_interaction/blind_transfer/call_transfer.py b/tests/rest_api/external_interaction/blind_transfer/call_transfer.py
index ddef074..c29325d 100755
--- a/tests/rest_api/external_interaction/blind_transfer/call_transfer.py
+++ b/tests/rest_api/external_interaction/blind_transfer/call_transfer.py
@@ -10,7 +10,6 @@
the GNU General Public License Version 2.
"""
-import sys
import os
import logging
import pjsua as pj
diff --git a/tests/rest_api/message/message_modules.py b/tests/rest_api/message/message_modules.py
index c2d8f2e..c80290d 100644
--- a/tests/rest_api/message/message_modules.py
+++ b/tests/rest_api/message/message_modules.py
@@ -7,7 +7,6 @@
the GNU General Public License Version 2.
"""
-import sys
import logging
import json
import requests
diff --git a/tests/udptl/run-test b/tests/udptl/run-test
index a9410ae..882cf7d 100755
--- a/tests/udptl/run-test
+++ b/tests/udptl/run-test
@@ -8,11 +8,9 @@
'''
import sys
from twisted.internet import reactor
-from starpy import manager
import logging
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
diff --git a/tests/udptl_v6/run-test b/tests/udptl_v6/run-test
index e71c5c0..a64086b 100755
--- a/tests/udptl_v6/run-test
+++ b/tests/udptl_v6/run-test
@@ -9,11 +9,9 @@
import sys
from twisted.internet import reactor
-from starpy import manager
import logging
sys.path.append("lib/python")
-from asterisk.asterisk import Asterisk
from asterisk.test_case import TestCase
logger = logging.getLogger(__name__)
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/11438
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Change-Id: Ife6e90be1fe2707448d6fec34f1aa826332377dd
Gerrit-Change-Number: 11438
Gerrit-PatchSet: 1
Gerrit-Owner: Rodrigo Ramirez Norambuena <a at rodrigoramirez.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190603/72dbdcfb/attachment-0001.html>
More information about the asterisk-code-review
mailing list