def test_defaultrecursion(self):
        enc = RecursiveJSONEncoder()
        self.assertEquals(enc.encode(JSONTestObject), '"JSONTestObject"')
        enc.recurse = True
        try:
            enc.encode(JSONTestObject)
        except __HOLE__:
            pass
        else:
            self.fail("didn't raise ValueError on default recursion")
dataset/ETHPy150Open CollabQ/CollabQ/vendor/simplejson/tests/test_recursion.py/TestRecursion.test_defaultrecursion