def test_systemctl_reload(self):
        mock = MagicMock(side_effect=[
            {'stdout': 'Who knows why?',
             'stderr': '',
             'retcode': 1,
             'pid': 12345},
            {'stdout': '',
             'stderr': '',
             'retcode': 0,
             'pid': 54321},
        ])
        with patch.dict(systemd.__salt__, {'cmd.run_all': mock}):
            self.assertRaisesRegexp(
                CommandExecutionError,
                'Problem performing systemctl daemon-reload: Who knows why?',
                systemd.systemctl_reload
            )
            self.assertTrue(systemd.systemctl_reload())
Test contrib.formtools.preview form submittal, using the hash function
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/systemd_test.py/SystemdTestCase.test_systemctl_reload--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/contrib/formtools/tests/__init__.py/PreviewTests.test_form_submit_django12_hash_custom_hash