'Test command sensor with template.'

def test_template(self):

    data = command_line.CommandSensorData('echo    50')
    entity = command_line.CommandSensor(self.hass, data, 'test', 'in', Template('{{    value    |    multiply(0.1)    }}', self.hass))
    entity.update()
    self.assertEqual(5, float(entity.state))
