MCPcopy Create free account
hub / github.com/simplejson/simplejson / test

Method test

simplejson/tests/test_speedups.py:70–71  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

68 @skip_if_speedups_missing
69 def test_bad_bool_args(self):
70 def test(name):
71 encoder.JSONEncoder(**{name: BadBool()}).encode({})
72 self.assertRaises(ZeroDivisionError, test, 'skipkeys')
73 self.assertRaises(ZeroDivisionError, test, 'ensure_ascii')
74 self.assertRaises(ZeroDivisionError, test, 'check_circular')

Callers

nothing calls this directly

Calls 2

BadBoolClass · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected