def test_to_mongo(): user = User() user.login_name = 'test' user.login_pass = '******' print(user.to_mongo())
def test_save(): user = User() user.login_name = 'test3' user.login_pass = '******' print(user.save())