@@ -104,7 +104,9 @@ def test_size_not_specified(self):
104104 ]
105105 # Make sure the size of the data is 1 byte
106106 data = self .network [2 ].sdo .upload (0x1400 , 2 )
107- self .assertEqual (data , b'\xfe ' )
107+ self .assertEqual (data , b'\xfe \x00 \x00 \x00 ' )
108+ data = self .network [2 ].object_dictionary [0x1400 ][2 ].decode_raw (data )
109+ self .assertEqual (data , 254 )
108110 self .assertTrue (self .message_sent )
109111
110112 def test_expedited_download (self ):
@@ -814,7 +816,6 @@ def test_unknown_od_112(self):
814816
815817 def test_unknown_datatype32 (self ):
816818 """Test an unknown datatype, but known OD, of 32 bits (4 bytes)."""
817- return # FIXME: Disabled temporarily until datatype conditionals are fixed, see #436
818819 # Add fake entry 0x2100 to OD, using fake datatype 0xFF
819820 if 0x2100 not in self .node .object_dictionary :
820821 fake_var = ODVariable ("Fake" , 0x2100 )
@@ -829,7 +830,6 @@ def test_unknown_datatype32(self):
829830
830831 def test_unknown_datatype112 (self ):
831832 """Test an unknown datatype, but known OD, of 112 bits (14 bytes)."""
832- return # FIXME: Disabled temporarily until datatype conditionals are fixed, see #436
833833 # Add fake entry 0x2100 to OD, using fake datatype 0xFF
834834 if 0x2100 not in self .node .object_dictionary :
835835 fake_var = ODVariable ("Fake" , 0x2100 )
0 commit comments