'Setup things to be run when tests are started.'

def setUp(self):

    self.hass = get_test_home_assistant()
    test_light = loader.get_component('light.test')
    test_light.init()
    self.assertTrue(setup_component(self.hass, light.DOMAIN, {light.DOMAIN: {'platform': 'test'}}))
    (self.light_1, self.light_2) = test_light.DEVICES[0:2]
    light.turn_off(self.hass, [self.light_1.entity_id, self.light_2.entity_id])
    self.hass.block_till_done()
    self.assertFalse(self.light_1.is_on)
    self.assertFalse(self.light_2.is_on)
