SolarWinds Interview Question

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