MCPcopy Index your code
hub / github.com/numpy/numpy / test_str

Method test_str

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

Source from the content-addressed store, hash-verified

314 assert f'{id(rs):#x}'.upper().replace('X', 'x') in repr(rs)
315
316 def test_str(self):
317 rs = Generator(self.bit_generator(*self.data1['seed']))
318 assert 'Generator' in str(rs)
319 assert str(self.bit_generator.__name__) in str(rs)
320 assert f'{id(rs):#x}'.upper().replace('X', 'x') not in str(rs)
321
322 def test_pickle(self):
323 import pickle

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
upperMethod · 0.80

Tested by

no test coverage detected