Tuning ValueHolder as I could not find better option to generate the double-underscore methods.

This commit is contained in:
Romain Dorgueil
2017-05-21 19:22:45 +02:00
parent 2b3ef05fac
commit 4d9b579a60
12 changed files with 177 additions and 117 deletions

View File

@ -35,6 +35,7 @@ def test_wrapper_name():
def test_valueholder():
x = ValueHolder(42)
assert x == 42
x += 1
assert x == 43