'Test oscillating the fan.'

def test_oscillate(self):

    self.assertFalse(self.get_entity().attributes.get('oscillating'))
    fan.oscillate(self.hass, FAN_ENTITY_ID, True)
    self.hass.block_till_done()
    self.assertTrue(self.get_entity().attributes.get('oscillating'))
    fan.oscillate(self.hass, FAN_ENTITY_ID, False)
    self.hass.block_till_done()
    self.assertFalse(self.get_entity().attributes.get('oscillating'))
