Пример #1
0
 def test_share_invite_07(self):
     """测试邀请位置为空"""
     result = share_invite("", account_Jenny, permission, hint, remark)
     self.assertIn('"code":302', result.text)
Пример #2
0
 def test_share_invite_06(self):
     """测试使用其他用户的位置进行邀请"""
     result = share_invite(positionId_Jenny, account_Jenny, permission,
                           hint, remark)
     self.assertIn('"code":710', result.text)
Пример #3
0
 def test_share_invite_05(self):
     """测试邀请位置错误或不存在"""
     result = share_invite(positionId_Gary.replace("4", "5"), account_Jenny,
                           permission, hint, remark)
     self.assertIn('"code":710', result.text)
Пример #4
0
 def test_share_invite_04(self):
     """测试邀请账号为空"""
     result = share_invite(positionId_Gary, "", permission, hint, remark)
     self.assertIn('"code":302', result.text)
Пример #5
0
 def test_share_invite_03(self):
     """测试邀请账号未注册"""
     result = share_invite(positionId_Gary, account_Jenny + "1", permission,
                           hint, remark)
     self.assertIn('"code":801', result.text, "账号未注册")
Пример #6
0
 def test_share_invite_02(self):
     """测试分享的位置已分享"""
     result = share_invite(positionId_Gary, account_Jenny, permission, hint,
                           remark)
     self.assertIn('"code":2206', result.text, "This position has invite")