58c90402c5e674ce2d62ae941f20548c5c85d150,homeassistant/test.py,TestHTTP,test_api_get_event_listeners,#TestHTTP#,243
Before Change
req = requests.get(_url(remote.URL_API_EVENTS),
headers=HA_HEADERS)
self.assertEqual(req.json(), self.hass.bus.listeners)
def test_api_get_services(self):
Test if we can get a dict describing current services.
req = requests.get(_url(remote.URL_API_SERVICES),
After Change
local = self.hass.bus.listeners
for event in req.json():
self.assertEqual(event["listener_count"],
local.pop(event["event"]))
self.assertEqual(len(local), 0)
def test_api_get_services(self):
Test if we can get a dict describing current services.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: home-assistant/home-assistant
Commit Name: 58c90402c5e674ce2d62ae941f20548c5c85d150
Time: 2014-10-19
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTP
Method Name: test_api_get_event_listeners
Project Name: ray-project/ray
Commit Name: a519b4f2a95e69a874162c90ef1ffe19a2cc5da6
Time: 2020-03-24
Author: xmo@berkeley.edu
File Name: python/ray/serve/tests/test_api.py
Class Name:
Method Name: test_e2e
Project Name: eth-cscs/reframe
Commit Name: c4321e700906cb0906f8eec31ba0e083f0138c97
Time: 2021-02-10
Author: karakasis@cscs.ch
File Name: unittests/test_ci.py
Class Name:
Method Name: test_ci_gitlab_pipeline
Project Name: home-assistant/home-assistant
Commit Name: 58c90402c5e674ce2d62ae941f20548c5c85d150
Time: 2014-10-19
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/test.py
Class Name: TestHTTP
Method Name: test_api_get_services