MCPcopy Create free account
hub / github.com/celery/celery / test_custom_table

Method test_custom_table

t/unit/utils/test_serialization.py:109–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107 assert strtobool(1) == 1
108
109 def test_custom_table(self):
110 custom_table = {
111 'foo': True,
112 'bar': False
113 }
114
115 assert strtobool("foo", table=custom_table)
116 assert not strtobool("bar", table=custom_table)

Callers

nothing calls this directly

Calls 1

strtoboolFunction · 0.90

Tested by

no test coverage detected