SolarWinds interview question

Design a lottery system using Python, write test cases for the same.