Example #1
0
 def test_TD_M2M_NH_33_Update_Group(self):
     group = grp()
     payload = group.to_JSON()
     iotdm_api.update("coap://localhost:5683/ODL-oneM2M-Cse/TestGroup",
                      payload,
                      origin="CSE3219/C9886",
                      requestID="12345")
 def test_TD_M2M_NH_31_Create_Group(self):
     group = grp()
     group.set_mt(2)
     group.set_mnm(10)
     group.set_mid(["a"])
     group.set_rn("TestGroup")
     payload = group.to_JSON()
     iotdm_api.create("coap://localhost:5683/ODL-oneM2M-Cse", 9, payload, origin="CSE3219/C9886", requestID="12345")
Example #3
0
 def test_TD_M2M_NH_31_Create_Group(self):
     group = grp()
     group.set_mt(2)
     group.set_mnm(10)
     group.set_mid(["a"])
     group.set_rn("TestGroup")
     payload = group.to_JSON()
     iotdm_api.create("coap://localhost:5683/ODL-oneM2M-Cse",
                      9,
                      payload,
                      origin="CSE3219/C9886",
                      requestID="12345")
 def test_TD_M2M_NH_33_Update_Group(self):
     group = grp()
     payload = group.to_JSON()
     iotdm_api.update("coap://localhost:5683/ODL-oneM2M-Cse/TestGroup", payload, origin="CSE3219/C9886", requestID="12345")