'Return the configured unit of measurement.'

@patch('homeassistant.components.sensor.tcp.TcpSensor.update')
def test_unit_of_measurement(self, mock_update):

    sensor = tcp.TcpSensor(self.hass, TEST_CONFIG['sensor'])
    assert (sensor.unit_of_measurement == TEST_CONFIG['sensor'][tcp.CONF_UNIT_OF_MEASUREMENT])
