示例#1
0
文件: test.py 项目: JYEEEEE/LuckyDraw
def test_to_mongo():
    user = User()
    user.login_name = 'test'
    user.login_pass = '******'

    print(user.to_mongo())
示例#2
0
文件: test.py 项目: JYEEEEE/LuckyDraw
def test_save():
    user = User()
    user.login_name = 'test3'
    user.login_pass = '******'
    print(user.save())