def test_simple_merge_nodes(self):
        # Move x/y to underneath a/, which has to merge with the existing a/x/
        # subtree.
        target = models.Topic.objects.get_by_full_name("a")
        node = models.Topic.objects.get_by_full_name("x")
        old_id = node.id
        surviving_node = models.Topic.objects.get_by_full_name("a/x")
        signals.pre_merge.connect(self.signal_catcher)
        node.merge_to(target)
        signals.pre_merge.disconnect(self.signal_catcher)
        self.assertEqual(len(self.signals), 1)
        merge_pairs = self.signals[0][1]["merge_pairs"]
        self.assertEqual(len(merge_pairs), 1)
        self.assertEqual(merge_pairs[0], (old_id, surviving_node.id))
Connect assuming a host and port tuple. Implemented as non-blocking,
dataset/ETHPy150Open malcolmt/django-acacia/acacia/tests/test_models.py/TopicTest.test_simple_merge_nodes--crossover with--dataset/ETHPy150Open agoragames/haigha/haigha/transports/event_transport.py/EventTransport.connect