def test_connect(self):
        """
        Test connecting a receiver to a signal.

        @raise AssertionError: If the test fails.
        """
        mediator = Mediator()
        mediator.connect('set_dog_sound', self.dog.set_sound)
        self.assertEquals([self.dog.set_sound], mediator.signals['set_dog_sound'])

        mediator.connect('set_cat_sound', self.cat.set_sound)
        self.assertEquals([self.cat.set_sound], mediator.signals['set_cat_sound'])

        Test connecting a receiver to a signal.

        @raise AssertionError: If the test fails.
        
tests/behavioral_tests/test_mediator.py