add tp/tests/test_sendxmpp_handler.py

This commit is contained in:
Trent Palmer 2021-04-26 05:18:02 -07:00
parent 411f6373a4
commit 8b63db59a7
2 changed files with 18 additions and 0 deletions

0
tp/tests/__init__.py Normal file
View File

View File

@ -0,0 +1,18 @@
from django.test import TestCase
import logging
from tp.sendxmpp_handler import SENDXMPPHandler
logger = logging.getLogger(__name__)
xH = SENDXMPPHandler()
xH.setLevel(logging.ERROR)
logger.addHandler(xH)
class TestSendXMPPHandlerTestCase(TestCase):
def test_sendxmpp_handler(self):
logger.debug('test_sendxmpp_handler_debug_test')
logger.info('test_sendxmpp_handler_info_test')
logger.warning('test_sendxmpp_handler_warning_test')
logger.error('test_sendxmpp_handler_error_test')
logger.critical('test_sendxmpp_handler_critical_test')