boltons/tests/test_typeutils.py

14 lines
234 B
Python

import pickle
from boltons.typeutils import make_sentinel
NOT_SET = make_sentinel('not_set', var_name='NOT_SET')
def test_sentinel_falsiness():
assert not NOT_SET
def test_sentinel_pickle():
assert pickle.dumps(NOT_SET)