@mock.patch('crontab.CronTab', autospec=True, side_effect=get_crontab)
    def test_installtasks(self, _):
        call_command('installtasks')
        self.assertTrue(any(['runtask praise' in cmd for cmd in crontab.commands]))
        self.assertTrue(any(['runtask complain' in cmd for cmd in crontab.commands]))
        self.assertTrue(any(['manage.py task' in cmd for cmd in crontab.commands]))
        self.assertIn(KRONOS_BREADCRUMB, crontab.comments)
Test installing tasks with the ``installtasks`` command.
dataset/ETHPy150Open jgorset/django-kronos/kronos/tests/tests.py/TestCase.test_installtasks