MCPcopy Create free account
hub / github.com/numpy/numpy / assert_startswith

Function assert_startswith

numpy/ma/tests/test_subclassing.py:19–21  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

17# from numpy.ma.core import (
18
19def assert_startswith(a, b):
20 # produces a better error message than assert_(a.startswith(b))
21 assert_equal(a[:len(b)], b)
22
23class SubArray(np.ndarray):
24 # Defines a generic np.ndarray subclass, that stores some metadata

Callers 1

test_subclass_reprMethod · 0.85

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected