MCPcopy
hub / github.com/quantopian/zipline / assert_labelarray_equal

Function assert_labelarray_equal

zipline/testing/predicates.py:609–621  ·  view source on GitHub ↗
(result, expected, path=(), **kwargs)

Source from the content-addressed store, hash-verified

607
608@assert_equal.register(LabelArray, LabelArray)
609def assert_labelarray_equal(result, expected, path=(), **kwargs):
610 assert_equal(
611 result.categories,
612 expected.categories,
613 path=path + ('.categories',),
614 **kwargs
615 )
616 assert_equal(
617 result.as_int_array(),
618 expected.as_int_array(),
619 path=path + ('.as_int_array()',),
620 **kwargs
621 )
622
623
624def _register_assert_equal_wrapper(type_, assert_eq):

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.85
as_int_arrayMethod · 0.80

Tested by

no test coverage detected