MCPcopy Create free account
hub / github.com/quantopian/zipline / fake_method

Method fake_method

tests/test_algorithm.py:279–280  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

277 sentinel = object()
278
279 def fake_method(*args, **kwargs):
280 return sentinel
281 setattr(algo, name, fake_method)
282 with ZiplineAPI(algo):
283 self.assertIs(sentinel, getattr(zipline.api, name)())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected