You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.0 KiB

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is under GNU Affero General Public License 3.0
# see LICENSE.txt
import pytest
import lib_test
from lib_test import *
def test_func_V_args_V():
(ret,) = func_V_args_V()
assert(ret == None)
def test_func_P_args_V():
(ret,) = func_P_args_V()
print("RESULT:", ret)
assert (ret == 23)
def test_func_V_args_P():
(ret,arg1) = func_V_args_P(23)
print("RESULT:", ret, arg1)
assert(ret == None)
assert(arg1 == 23)
def test_func_P_args_P():
(ret,arg1) = func_P_args_P(22)
print("RESULT:", ret, arg1)
assert (ret == 23)
assert (arg1 == 22)
# @pytest.mark.skip("")
def test_func_V_args_pP():
(ret,arg1) = func_V_args_pP(22)
print("RESULT:", ret, arg1)
assert (ret == None)
assert (arg1 == 23)
def test_func_P_args_P_pP_pP():
(ret, arg1, arg2, arg3) = func_P_args_P_pP_pP(23, 22, 22)
print("RESULT:", ret, arg1, arg2, arg3)
assert (ret == 23)
assert (arg1 == 23)
assert (arg2 == 23)
assert (arg3 == 23)