def test_loads_document_class(self):
    self.assertEqual({'foo': 'bar'}, json_util.loads('{"foo": "bar"}', json_options=json_util.JSONOptions(document_class=dict)))
    self.assertEqual(SON([('foo', 'bar'), ('b', 1)]), json_util.loads('{"foo": "bar", "b": 1}', json_options=json_util.JSONOptions(document_class=SON)))
def test_loads_document_class(self):
    self.assertEqual({'foo': 'bar'}, json_util.loads('{"foo": "bar"}', json_options=json_util.JSONOptions(document_class=dict)))
    self.assertEqual(SON([('foo', 'bar'), ('b', 1)]), json_util.loads('{"foo": "bar", "b": 1}', json_options=json_util.JSONOptions(document_class=SON)))