def test_remotes(self):
        remotes = {
            'first': {'fetch': '/dev/null', 'push': '/dev/null'},
            'second': {'fetch': '/dev/null', 'push': '/dev/stdout'}
        }
        self.assertEqual(
            self.run_function(
                'git.remote_set',
                [self.repo, remotes['first']['fetch']],
                remote='first'
            ),
            remotes['first']
        )
        self.assertEqual(
            self.run_function(
                'git.remote_set',
                [self.repo, remotes['second']['fetch']],
                remote='second',
                push_url=remotes['second']['push']
            ),
            remotes['second']
        )
        self.assertEqual(
            self.run_function('git.remotes', [self.repo]),
            remotes
        )
Return a function to be run in a child process which will trigger SIGNAME to be sent when the
dataset/ETHPy150Open saltstack/salt/tests/integration/modules/git.py/GitModuleTest.test_remotes--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/shell.py/on_parent_exit