1ceee2d6c5904216c974c914bf37bbf3ee689ef0,tests/components/test_mqtt.py,TestMQTTCallbacks,test_mqtt_subscribes_topics_on_connect,#TestMQTTCallbacks#,180
Before Change
"home/sensor": 2,
"still/pending": None
}
mqttc = mock.MagicMock()
mqtt._mqtt_on_connect(mqttc, {"topics": prev_topics}, 0, 0)
self.assertFalse(mqttc.disconnect.called)
expected = [(topic, qos) for topic, qos in prev_topics.items()
After Change
from collections import OrderedDict
prev_topics = OrderedDict()
prev_topics["topic/test"] = 1,
prev_topics["home/sensor"] = 2,
prev_topics["still/pending"] = None
mqtt.MQTT_CLIENT.topics = prev_topics
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 1ceee2d6c5904216c974c914bf37bbf3ee689ef0
Time: 2016-01-19
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_mqtt.py
Class Name: TestMQTTCallbacks
Method Name: test_mqtt_subscribes_topics_on_connect
Project Name: home-assistant/home-assistant
Commit Name: 8fbb5858743dc4f356bdff3f0126899aad9c3aa8
Time: 2016-01-17
Author: paulus@paulusschoutsen.nl
File Name: tests/components/test_mqtt.py
Class Name: TestMQTTCallbacks
Method Name: test_mqtt_subscribes_topics_on_connect
Project Name: lingpy/lingpy
Commit Name: b92e27bac4470ab6fe5bd1a859b9fb6cd40d073c
Time: 2016-04-25
Author: mattis.list@uni-marburg.de
File Name: lingpy/tests/compare/test_phylogeny.py
Class Name: TestPhyBo
Method Name: test_plot