'Test state gets updated to unknown when sensor returns no data.'

def test_update_when_value_is_none(self):

    self.rest.update = Mock('rest.RestData.update', side_effect=self.update_side_effect(None))
    self.sensor.update()
    self.assertEqual(STATE_UNKNOWN, self.sensor.state)
