Пример #1
0
 def test_user_report_info_06(self):
     """测试上传用户基本信息都为空"""
     result = user_report_info(nickName=None,
                               gender=None,
                               birthday=None,
                               area=None)
     self.assertIn('"code":0', result.text)
Пример #2
0
 def test_user_report_info_01(self):
     """测试上传用户基本信息"""
     result = user_report_info(nickName=nickName,
                               gender=gender,
                               birthday=birthday,
                               area=area)
     result_from_sql = get_result_from_sql(sql)
     self.assertEqual((nickName, gender, birthday, area), result_from_sql)