Ejemplo n.º 1
0
 def test_ifttt_linkage_copy_05(self):
     """测试重命名联动name为空"""
     result = ifttt_linkage_copy(linkage_id_Gary, "")
     self.assertIn('"code":0', result.text)
Ejemplo n.º 2
0
 def test_ifttt_linkage_copy_04(self):
     """测试复制自动化id为空"""
     result = ifttt_linkage_copy("", name)
     self.assertIn('"code":302', result.text)
Ejemplo n.º 3
0
 def test_ifttt_linkage_copy_02(self):
     """测试复制自动化id错误或不存在"""
     result = ifttt_linkage_copy(linkage_id_wrong, name)
     self.assertIn('"code":707', result.text)
Ejemplo n.º 4
0
 def test_ifttt_linkage_copy_03(self):
     """测试复制其他用户自动化"""
     result = ifttt_linkage_copy(linkage_id_Jenny, name)
     self.assertIn('"code":707', result.text)
Ejemplo n.º 5
0
 def test_ifttt_linkage_copy_01(self):
     """测试复制一个自动化"""
     result = ifttt_linkage_copy(linkage_id_Gary, name)
     self.assertIn('"code":0', result.text)