def test_activate_JsonArray(self): a = wdj.JsonArray() self.assertEqual(a.Size, 0) self.assertEqual(a.ValueType, wdj.JsonValueType.Array) self.assertEqual(a.ToString(), "[]") self.assertEqual(a.Stringify(), "[]")
def test_JsonArray_str(self): a = wdj.JsonArray() self.assertEqual(str(a), "[]")
def test_invalid_param_count_instance(self): a = wdj.JsonArray() with self.assertRaises(TypeError): a.Append(10, 20)
def test_activate_JsonArray(self): a = wdj.JsonArray() self.assertEqual(a.get_Size(), 0) self.assertEqual(a.get_ValueType(), 4) self.assertEqual(a.ToString(), "[]") self.assertEqual(a.Stringify(), "[]")