def test_01(self, yscy: Yishengcaiyun): '''名字太短是否正常''' yscy.open("/yishengcaiyun/index?channel=online_paytest") yscy.short_name() acturl_tips = yscy.get_tips() expect_tips = "姓名最少2个字" assert acturl_tips == expect_tips
def test_03(self, yscy: Yishengcaiyun): '''英文姓名太短是否正常''' yscy.open("/yishengcaiyun/index?channel=online_paytest") yscy.short_english_name() acturl_tips = yscy.get_tips() expect_tips = "英文姓名最少3个字母" assert acturl_tips == expect_tips
def test_04(self, yscy: Yishengcaiyun): '''英文姓名太长是否正常''' yscy.open("/yishengcaiyun/index?channel=online_paytest") yscy.long_english_name() acturl_tips = yscy.get_tips() expect_tips = "英文姓名不超过10个字母" assert acturl_tips == expect_tips
def test_02(self, yscy: Yishengcaiyun): '''名字太长是否会正常''' yscy.open("/yishengcaiyun/index?channel=online_paytest") yscy.long_name() acturl_tips = yscy.get_tips() expect_tips = "姓名不超过5个字" assert acturl_tips == expect_tips