def test_update_case22(self, startapp): test_update = Redact_Message(startapp) test_update.update_case22() res = test_update.get_nickname_success() exp = '修改我以后' assert res == exp
def test_update_case24(self, startapp): test_update = Redact_Message(startapp) test_update.update_case24() res = test_update.get_sex_success() exp = '内蒙古自治区包头市' assert res == exp
def test_update_case21(self, startapp): test_update = Redact_Message(startapp) test_update.update_case21() res = test_update.is_toast_in("保存成功") exp = '保存成功' assert res != exp
def test_update_case20(self, startapp): test_update = Redact_Message(startapp) test_update.update_case20() res = test_update.get_address_success() print(res) exp = '湖南省衡阳市' assert res == exp
def test_update_case19(self, startapp): test_update = Redact_Message(startapp) test_update.update_case19() res = test_update.get_address_success() exp ='湖南省长沙市' print(res) assert res == exp
def test_update_case02(self, startapp): test_update = Redact_Message(startapp) test_update.update_nickname_case02() # 先修改昵称再获取结果 res = test_update.get_nickname_success() # 获取修改后的结果 print(res) exp = "柯基小王子" assert res == exp
def test_update_case14(self, startapp): test_update = Redact_Message(startapp) test_update.update_case14() res = test_update.get_nickname_success() print(res) exp = '新的昵称' assert res == exp
def test_update_case03(self, startapp): test_update = Redact_Message(startapp) test_update.update_sex_case03() res = test_update.get_sex_success() print(res) exp = "男" assert res == exp
def test_update_case_error07(self, startapp): test_update = Redact_Message_Other(startapp) test_update.update_address_error01() test_res = Redact_Message(startapp) res = test_res.get_address_success() exp = '安徽省合肥市' assert res != exp
def test_update_case_error06(self, startapp): test_update = Redact_Message_Other(startapp) test_update.update_date_error01() test_res = Redact_Message(startapp) res = test_res.get_date_success() exp = '2013-08-12' assert res != exp
def test_update_case_error04(self, startapp): test_update = Redact_Message_Other(startapp) test_update.update_nickname_error04() test_res = Redact_Message(startapp) res = test_res.get_nickname_success() exp = 'assassin' assert res != exp
def test_update_case_error05(self, startapp): test_update = Redact_Message_Other(startapp) test_update.update_sex_error01() test_res = Redact_Message(startapp) res = test_res.get_sex_success() exp = '男' assert res != exp
def test_update_case04(self, startapp): test_update = Redact_Message(startapp) test_update.update_adress_case04() res = test_update.get_address_success() print(res) exp = "四川省乐山市" assert res == exp
def test_update_case05(self, startapp): test_update = Redact_Message(startapp) test_update.update_date_case05() res = test_update.is_toast_in("保存成功") print(res) exp = "保存成功" assert res != exp
def test_update_case15(self, startapp): test_update = Redact_Message(startapp) test_update.update_case15() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_sex_success()) res.append(test_update.get_address_success()) exp = ['qwer', '其它', '北京市市辖区'] for x, y in zip(res, exp): print(x, y) assert x == y
def test_update_case25(self, startapp): test_update = Redact_Message(startapp) test_update.update_case25() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_sex_success()) exp = ['修改的昵称', '其它'] assert res == exp
def test_update_case06(self, startapp): test_update = Redact_Message(startapp) test_update.update_case06() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_sex_success()) res.append(test_update.get_address_success()) print(res) exp = ['魔力转圈圈', '男', '广东省韶关市'] for x, y in zip(res, exp): print(x, y) assert x == y
def test_update_case08(self, startapp): test_update = Redact_Message(startapp) test_update.update_case08() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_sex_success()) res.append(test_update.get_address_success()) print(res) exp = ['测试账号4', '其它', '西藏自治区那曲市'] for x, y in zip(res, exp): print(x, y) assert x == y
def test_update_case27(self, startapp): test_update = Redact_Message(startapp) test_update.update_case27() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.is_toast_in("保存成功")) exp = ['assassin', '保存成功'] for x,y in zip(res, exp): print(x, y) assert res == exp
def test_update_case26(self, startapp): test_update = Redact_Message(startapp) test_update.update_case26() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_address_success()) exp = ['啦啦啦啦', '新疆维吾尔自治区克孜勒苏柯尔克孜自治州'] for x,y in zip(res,exp): print(x, y) assert res == exp
def test_update_case12(self, startapp): test_update = Redact_Message(startapp) test_update.update_case12() res =[] res.append(test_update.get_nickname_success()) res.append(test_update.get_sex_success()) exp =['测试账号1', '其它'] for x, y in zip(res, exp): print(x, y) assert x == y
def test_update_case28(self, startapp): test_update = Redact_Message(startapp) test_update.update_case28() res = [] res.append(test_update.get_sex_success()) res.append(test_update.get_address_success()) exp = ['男', '安徽省合肥市'] for x, y in zip(res, exp): print(x, y) assert res == exp
def test_update_case13(self, startapp): test_update = Redact_Message(startapp) test_update.update_case13() res = [] res.append(test_update.get_nickname_success()) res.append(test_update.get_address_success()) exp =['测试账号哟', '山西省大同市'] for x, y in zip(res, exp): print(x, y) assert x == y
def test_update_case17(self, startapp): test_update = Redact_Message(startapp) test_update.update_case17() res = [] res.append(test_update.get_sex_success()) res.append(test_update.get_address_success()) print(res) exp = ['女', '湖南省邵阳市'] for x, y in zip(res, exp): print(x, y) assert x == y