def setUp(self):
    'Setup things to be run when tests are started.'
    self.hass = get_test_home_assistant()
    self.calls = mock_service(self.hass, 'test_domain', 'test_service')
Setup things to be run when tests are started.
def setUp(self):
    
    self.hass = get_test_home_assistant()
    self.calls = mock_service(self.hass, 'test_domain', 'test_service')