mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-22 01:21:30 -08:00
add tp/tests/test_sendxmpp_handler.py
This commit is contained in:
parent
411f6373a4
commit
8b63db59a7
0
tp/tests/__init__.py
Normal file
0
tp/tests/__init__.py
Normal file
18
tp/tests/test_sendxmpp_handler.py
Normal file
18
tp/tests/test_sendxmpp_handler.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user