MCPcopy
hub / github.com/numpy/numpy / test_getstate

Method test_getstate

numpy/random/tests/test_direct.py:404–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402 assert other_ctypes_interface is ctypes_interface
403
404 def test_getstate(self):
405 bit_generator = self.bit_generator(*self.data1['seed'])
406 state = bit_generator.state
407 alt_state = bit_generator.__getstate__()
408 assert isinstance(alt_state, tuple)
409 assert_state_equal(state, alt_state[0])
410 assert isinstance(alt_state[1], SeedSequence)
411
412class TestPhilox(Base):
413 @classmethod

Callers

nothing calls this directly

Calls 2

assert_state_equalFunction · 0.85
__getstate__Method · 0.45

Tested by

no test coverage detected