'Test multi part emails with only other text.'

def test_multi_part_only_other_text(self):

    msg = MIMEMultipart('alternative')
    msg['Subject'] = 'Link'
    msg['From'] = 'sender@test.com'
    other = 'Test    Message'
    htmlPart = MIMEText(other, 'other')
    msg.attach(htmlPart)
    sensor = imap_email_content.EmailContentSensor(self.hass, FakeEMailReader(deque([msg])), 'test_emails_sensor', ['sender@test.com'], None)
    sensor.entity_id = 'sensor.emailtest'
    sensor.schedule_update_ha_state(True)
    self.hass.block_till_done()
    self.assertEqual('Test    Message', sensor.state)
