nes-proj/tests/18-coap-lwm2m/pytests/test-qmode-awake.py
2018-05-18 18:39:33 +02:00

21 lines
607 B
Python

import unittest, array, time
class TestQueueModeAwake(unittest.TestCase):
global respAwakeTime
global respSleepTime
def test_read_awake_time(self):
self.assertEqual(respAwakeTime.getCode().getName(), "CONTENT")
def test_read_sleep_time(self):
self.assertEqual(respSleepTime.getCode().getName(), "CONTENT")
print "----------------------------------------"
print "LWM2M Queue Mode Awake State Tester"
print "----------------------------------------"
suite = unittest.TestLoader().loadTestsFromTestCase(TestQueueModeAwake)
unittest.TextTestRunner(verbosity=2).run(suite)