'Test update when there is no value template.'

def test_update_with_no_template(self):

    self.rest.update = Mock('rest.RestData.update', side_effect=self.update_side_effect('plain_state'))
    self.sensor = rest.RestSensor(self.hass, self.rest, self.name, self.unit_of_measurement, None)
    self.sensor.update()
    self.assertEqual('plain_state', self.sensor.state)
