def test_warn_from_knx(self): """Test for warning if from_knx is not implemented.""" xknx = XKNX() remote_value = RemoteValue(xknx) with patch("logging.Logger.warning") as mock_warn: remote_value.from_knx(DPTBinary(0)) mock_warn.assert_called_with("'from_knx()' not implemented for %s", "RemoteValue")
def test_warn_from_knx(self): """Test for warning if from_knx is not implemented.""" xknx = XKNX(loop=self.loop) remote_value = RemoteValue(xknx) with patch('logging.Logger.warning') as mock_warn: remote_value.from_knx(DPTBinary(0)) mock_warn.assert_called_with('from_knx not implemented for %s', 'RemoteValue')