def test_009_user_activation(self): """ Time :2019-06-18 author : 罗林 desc : 激活用户 """ rs1 = FinanceAction.test_user_activation( pwd=loginAction.financePasswd, phone=phone, security=FinanceSql.get_user_passwd(user_id)) Assertion.verity(json.loads(rs1)['code'], 'F2000') Assertion.verity(json.loads(rs1)['message'], '请求成功')
def test_008_user_showPassword(self): """ Time :2019-06-18 author : 罗林 desc :finance查看用户密码 """ rs1 = FinanceAction.test_user_showPassword(user_id) Assertion.verity(json.loads(rs1)['code'], 'F2000') Assertion.verity(json.loads(rs1)['message'], '请求成功') Assertion.verity(json.loads(rs1)['data']['id'], user_id) Assertion.verity(json.loads(rs1)['data']['phone'], phone) Assertion.verity( json.loads(rs1)['data']['pwd'], FinanceSql.get_user_passwd(user_id))