diff --git a/tests/test_constructed_data/test_array_of.py b/tests/test_constructed_data/test_array_of.py index 7031e9e..8e84833 100644 --- a/tests/test_constructed_data/test_array_of.py +++ b/tests/test_constructed_data/test_array_of.py @@ -116,7 +116,7 @@ class TestIntegerArray(unittest.TestCase): # make it longer ary[0] = 4 - assert ary.value[1:] == [1, 2, None, None] + assert ary.value[1:] == [1, 2, 0, 0] def test_get_item(self): if _debug: TestIntegerArray._debug("test_get_item") diff --git a/tests/test_service/test_object.py b/tests/test_service/test_object.py index 22a4bc7..762a9ba 100644 --- a/tests/test_service/test_object.py +++ b/tests/test_service/test_object.py @@ -159,7 +159,7 @@ class TestWritableArray(unittest.TestCase): assert obj.ReadProperty('location', 0) == 2 # array extended with none, should get property default value - assert obj.ReadProperty('location', 2) == None + assert obj.ReadProperty('location', 2) == "" # wrong datatype with self.assertRaises(InvalidParameterDatatype): @@ -184,11 +184,11 @@ class TestWritableArray(unittest.TestCase): if _debug: TestWritableArray._debug("test_replacing_array") # create an object with a location - obj = SampleWritableArray(location=ArrayOfCharacterString()) + obj = SampleWritableArray() if _debug: TestWritableArray._debug(" - obj.location: %r", obj.location) # replace the array - obj.WriteProperty('location', ["home", "work"]) + obj.WriteProperty('location', ArrayOfCharacterString(["home", "work"])) assert obj.ReadProperty('location', 0) == 2 assert obj.ReadProperty('location', 1) == "home" assert obj.ReadProperty('location', 2) == "work"