Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celery/celery
/ test_bool
Method
test_bool
t/unit/utils/test_local.py:57–66 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
55
assert x._get_current_object()
56
57
def
test_bool(self):
58
59
class
X:
60
61
def
__bool__(self):
62
return
False
63
__nonzero__ = __bool__
64
65
x = Proxy(
lambda
: X())
66
assert not x
67
68
def
test_slots(self):
69
Callers
nothing calls this directly
Calls
2
Proxy
Class · 0.90
X
Class · 0.70
Tested by
no test coverage detected