'Test not whitelisted emails.'

def test_sender_not_allowed(self):

    test_message = email.message.Message()
    test_message['From'] = 'sender@test.com'
    test_message['Subject'] = 'Test'
    test_message['Date'] = datetime.datetime(2016, 1, 1, 12, 44, 57)
    test_message.set_payload('Test    Message')
    sensor = imap_email_content.EmailContentSensor(self.hass, FakeEMailReader(deque([test_message])), 'test_emails_sensor', ['other@test.com'], None)
    sensor.entity_id = 'sensor.emailtest'
    sensor.schedule_update_ha_state(True)
    self.hass.block_till_done()
    self.assertEqual(None, sensor.state)
