def test_get_json_object(self):
     y = JsonObject(foo=True)
     x = JsonArray(y, "Not an object")
     self.assertEquals(len(x), 2)
     self.assertTrue(x.get_json_object(0) == y)
     self.assertRaises(JsonConversionException,
                       x.get_json_object, 1)
 def test_get_json_object(self):
     y = JsonObject(foo=True)
     x = JsonArray(y, "Not an object")
     self.assertEquals(len(x), 2)
     self.assertTrue(x.get_json_object(0) == y)
     self.assertRaises(JsonConversionException,
                       x.get_json_object, 1)