Пример #1
0
 def test_payload_invalid(self):
     """Testing KNX/Byte representation of DPTDateTime object."""
     xknx = XKNX()
     rv_datetime = RemoteValueDateTime(xknx, value_type="datetime")
     with pytest.raises(CouldNotParseTelegram):
         rv_datetime.payload_valid(
             DPTArray((0x0B, 0x1C, 0x57, 0x07, 0x18, 0x20, 0x80))
         )
Пример #2
0
 def test_payload_invalid(self):
     """Testing KNX/Byte representation of DPTDateTime object."""
     xknx = XKNX()
     rv = RemoteValueDateTime(xknx, value_type="datetime")
     self.assertFalse(
         rv.payload_valid(
             DPTArray((0x0B, 0x1C, 0x57, 0x07, 0x18, 0x20, 0x80))))