How to reduce duplication in Python unittest suites by sharing common test logic across multiple test classes.