mirror of https://github.com/mahmoud/boltons.git
add no-copy-of-sentinels test
This commit is contained in:
parent
2ccc5098bc
commit
ddbdefc558
|
@ -1,3 +1,4 @@
|
|||
import copy
|
||||
import pickle
|
||||
|
||||
from boltons.typeutils import make_sentinel
|
||||
|
@ -10,3 +11,8 @@ def test_sentinel_falsiness():
|
|||
|
||||
def test_sentinel_pickle():
|
||||
assert pickle.dumps(NOT_SET)
|
||||
|
||||
def test_sentinel_copy():
|
||||
test = make_sentinel('test')
|
||||
assert test is copy.copy(test)
|
||||
assert test is copy.deepcopy(test)
|
||||
|
|
Loading…
Reference in New Issue