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

@mock.patch('pylitejet.LiteJet')
def setup_method(self, method, mock_pylitejet):

    self.hass = get_test_home_assistant()
    self.hass.start()
    def get_scene_name(number):
        return ('Mock    Scene    #' + str(number))
    self.mock_lj = mock_pylitejet.return_value
    self.mock_lj.loads.return_value = range(0)
    self.mock_lj.button_switches.return_value = range(0)
    self.mock_lj.all_switches.return_value = range(0)
    self.mock_lj.scenes.return_value = range(1, 3)
    self.mock_lj.get_scene_name.side_effect = get_scene_name
    assert setup.setup_component(self.hass, litejet.DOMAIN, {'litejet': {'port': '/tmp/this_will_be_mocked'}})
    self.hass.block_till_done()
