Exemple #1
0
 def repeater_delete_instance(self):
     payload = dmpv.repeater_delete_instance()
     req_url = pu.devices_instance_urls()["delete_dev_url"]
     r = requests.post(req_url, data=payload, cookies=self.ck)
     operate_time = time.strftime("%Y-%m-%d %H:%M:%S")
     self.result_check(r, operate_time, payload,
                       "get_device_properties_by_id", payload["id"], "", "",
                       "", self.repeater_id, True)
Exemple #2
0
 def repeater_update_instance(self):
     payload = dmpv.repeater_update_instance()
     req_url = pu.devices_instance_urls()["update_dev_url"]
     r = requests.post(req_url, data=payload, cookies=self.ck)
     operate_time = time.strftime("%Y-%m-%d %H:%M:%S")
     self.result_check(r, operate_time, payload,
                       "get_device_properties_by_name", payload["name"],
                       self.repeater_name, self.repeater_model,
                       self.repeater_net_type, self.repeater_id)
Exemple #3
0
 def lock_add_instance_other(self):
     payload = dmpv.lock_add_instance(u"其他")
     req_url = pu.devices_instance_urls()["add_dev_url"]
     r = requests.post(req_url, data=payload, cookies=self.ck)
     operate_time = time.strftime("%Y-%m-%d %H:%M:%S")
     self.result_check(r, operate_time, payload,
                       "get_device_properties_by_name", payload["name"],
                       self.lock_name, self.lock_model, self.lock_net_type,
                       self.lock_id)