Example patterns of automated testing in python