def test_delroomadmin_05(self): '''业务-房主权限-房主取消房管''' self.exp_res = {'code': '4000', 'status': True, 'message': '处理成功!'} self.user = anchor Common.set_fg(cid, room['fg'][5]['uid']) self.data['uid'] = room['fg'][5]['uid'] self.ver = ver(room['fg'][5]['uid'], 0)
def test_delroomadmin_03(self): '''业务-用户权限-用户取消房管''' self.exp_res = { 'code': '4303', 'data': [], 'message': '房间号不存在或参数错误!', 'status': False } self.user = user[5]['uid'] Common.set_fg(cid, room['fg'][2]['uid']) self.data['uid'] = room['fg'][2]['uid']
def test_setroomadmin_04(self): '''业务-用户权限-房管设置普通用户为房管''' self.exp_res = { 'message': '参数错误!', 'code': '4302', 'status': False, 'data': [] } self.user = room['fg'][0]['uid'] # 因为初始化删除了房管,所以重新设置 Common.set_fg(cid, self.user) self.data['username'] = user[2]['name']
def test_setroomadmin_06(self): '''业务-房主权限-房主设置房管为房管''' self.exp_res = {'code': '266', 'status': False, 'message': '已经是房管'} self.user = anchor Common.set_fg(cid, room['fg'][1]['uid']) self.data['username'] = room['fg'][1]['name']