MCPcopy
hub / github.com/celery/celery / test_format

Method test_format

t/unit/utils/test_graph.py:49–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 assert x.valency_of('foobarbaz') == 0
48
49 def test_format(self):
50 x = self.graph1()
51 x.formatter = Mock()
52 obj = Mock()
53 assert x.format(obj)
54 x.formatter.assert_called_with(obj)
55 x.formatter = None
56 assert x.format(obj) is obj
57
58 def test_items(self):
59 assert dict(self.graph1().items()) == {

Callers

nothing calls this directly

Calls 2

graph1Method · 0.95
formatMethod · 0.45

Tested by

no test coverage detected