2018-04-09 12:16:26 +00:00
|
|
|
from __future__ import with_statement
|
|
|
|
import unittest, array, time
|
|
|
|
|
|
|
|
class TestQueueModeSleep(unittest.TestCase):
|
|
|
|
global client
|
|
|
|
|
|
|
|
def test_read_awake_time(self):
|
2018-05-18 16:22:14 +00:00
|
|
|
self.assertIsNone(client.read("30000/0/30000"))
|
2018-04-09 12:16:26 +00:00
|
|
|
|
|
|
|
def test_read_sleep_time(self):
|
2018-05-18 16:22:14 +00:00
|
|
|
self.assertIsNone(client.read("30000/0/30001"))
|
2018-04-09 12:16:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
print "----------------------------------------"
|
|
|
|
print "LWM2M Queue Mode Sleep State Tester - name of client: ", client.endpoint
|
|
|
|
print "----------------------------------------"
|
|
|
|
|
|
|
|
suite = unittest.TestLoader().loadTestsFromTestCase(TestQueueModeSleep)
|
|
|
|
unittest.TextTestRunner(verbosity=2).run(suite)
|