nes-proj/tests/18-coap-lwm2m/pytests/test-qmode-awake.py

21 lines
607 B
Python
Raw Normal View History

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)