test that method reassignment works

This commit is contained in:
Mahmoud Hashemi 2020-03-23 11:54:15 -07:00
parent 293975f5fa
commit 4b2ad69b82
1 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,15 @@ def test_partials():
assert g.cached_partial_greet() == 'Hello...'
assert CachedInstancePartial(g.greet, excitement='s')() == 'Hellos'
g.native_greet = 'native reassigned'
assert g.native_greet == 'native reassigned'
g.partial_greet = 'partial reassigned'
assert g.partial_greet == 'partial reassigned'
g.cached_partial_greet = 'cached_partial reassigned'
assert g.cached_partial_greet == 'cached_partial reassigned'
def test_copy_function():
def callee():