test case in python