MCPcopy
hub / github.com/hyperopt/hyperopt / SONify

Method SONify

hyperopt/tests/test_base.py:225–228  ·  view source on GitHub ↗
(self, foo)

Source from the content-addressed store, hash-verified

223
224class TestSONify(unittest.TestCase):
225 def SONify(self, foo):
226 rval = SONify(foo)
227 assert bson.BSON.encode(dict(a=rval))
228 return rval
229
230 def test_int(self):
231 assert self.SONify(1) == 1

Callers 7

test_intMethod · 0.95
test_floatMethod · 0.95
test_np_1d_intMethod · 0.95
test_np_1d_floatMethod · 0.95
test_np_1d_strMethod · 0.95
test_np_2d_intMethod · 0.95
test_np_2d_floatMethod · 0.95

Calls 1

SONifyFunction · 0.90

Tested by

no test coverage detected