#NEWLINE# @ mock . patch ( 'crontab.CronTab' , autospec = True , side_effect = get_crontab ) #NEWLINE# def test_installtasks( self , _ ) : #NEWLINE# #INDENT# 'Test installing tasks with the ``installtasks`` command.' #NEWLINE# call_command ( 'installtasks' ) #NEWLINE# self . assertTrue ( any ( [ ( 'runtask praise' in cmd ) for cmd in crontab . commands ] ) ) #NEWLINE# self . assertTrue ( any ( [ ( 'runtask complain' in cmd ) for cmd in crontab . commands ] ) ) #NEWLINE# self . assertTrue ( any ( [ ( 'manage.py task' in _ ) for cmd in crontab . commands ] ) ) #NEWLINE# self . assertIn ( KRONOS_BREADCRUMB , crontab . comments )