'Test the sensor.'

def test_sensor_normal(self):

    zone = {'number': 1, 'name': 'foo', 'state': True}
    sensor = nx584.NX584ZoneSensor(zone, 'motion')
    self.assertEqual('foo', sensor.name)
    self.assertFalse(sensor.should_poll)
    self.assertTrue(sensor.is_on)
    zone['state'] = False
    self.assertFalse(sensor.is_on)
