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

Method test_unknown_value

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

Source from the content-addressed store, hash-verified

100 assert strtobool(s) == b
101
102 def test_unknown_value(self):
103 with pytest.raises(TypeError, match="Cannot coerce 'foo' to type bool"):
104 strtobool('foo')
105
106 def test_no_op(self):
107 assert strtobool(1) == 1

Callers

nothing calls this directly

Calls 2

strtoboolFunction · 0.90
raisesMethod · 0.80

Tested by

no test coverage detected