'Test service calls for unsupported vacuums.'

def test_unsupported_methods(self):

    self.hass.states.set(ENTITY_VACUUM_NONE, STATE_ON)
    self.hass.block_till_done()
    self.assertTrue(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.turn_off(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    self.assertTrue(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.stop(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    self.assertTrue(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    self.hass.states.set(ENTITY_VACUUM_NONE, STATE_OFF)
    self.hass.block_till_done()
    self.assertFalse(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.turn_on(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    self.assertFalse(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.toggle(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    self.assertFalse(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.start_pause(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    self.assertFalse(vacuum.is_on(self.hass, ENTITY_VACUUM_NONE))
    vacuum.locate(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_VACUUM_NONE)
    self.assertIsNone(state.attributes.get(ATTR_STATUS))
    vacuum.return_to_base(self.hass, ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_VACUUM_NONE)
    self.assertIsNone(state.attributes.get(ATTR_STATUS))
    vacuum.set_fan_speed(self.hass, FAN_SPEEDS[(-1)], entity_id=ENTITY_VACUUM_NONE)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_VACUUM_NONE)
    self.assertNotEqual(FAN_SPEEDS[(-1)], state.attributes.get(ATTR_FAN_SPEED))
    vacuum.clean_spot(self.hass, entity_id=ENTITY_VACUUM_BASIC)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_VACUUM_BASIC)
    self.assertNotIn('spot', state.attributes.get(ATTR_STATUS))
    self.assertEqual(STATE_OFF, state.state)
