Python test-cases