Test Code Python Encapsulation