python 3 test case study