This commit is contained in:
1 parent
8d5a66c4b8
commit
9aed7af2a3
1 file changed
+1
-1
@@ -31,7 +31,7 @@ def test_downcast_success():
|
||||
def test_upcast_success():
|
||||
b = Bulldog()
|
||||
assert b.snore() == "woooooof"
|
||||
assert not hasattr(d, "speak")
|
||||
assert not hasattr(b, "speak")
|
||||
upcast(b, Dog)
|
||||
assert b.speak() == "woof"
|
||||
assert not hasattr(b, "snore")
|
||||
|
||||
Reference in new issue
Block a user