Created
September 13, 2022 19:04
-
-
Save mohammadali66/ffcba1c5675f606a0d6d1f41401fd085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person: | |
def __init__(self, name: Name): | |
self.name = name | |
def test_barry_is_harry(): | |
harry = Person(Name("Harry", "Percival")) | |
barry = harry | |
barry.name = Name("Barry", "Percival") | |
assert harry is barry and barry is harry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment