'Test attributes of sensors.'

def test_icons(self):

    device = time_date.TimeDateSensor(self.hass, 'time')
    assert (device.icon == 'mdi:clock')
    device = time_date.TimeDateSensor(self.hass, 'date')
    assert (device.icon == 'mdi:calendar')
    device = time_date.TimeDateSensor(self.hass, 'date_time')
    assert (device.icon == 'mdi:calendar-clock')
