def testUpdateStats(self): # this tests only that the task runs, # not anything about the task itself self.assertTrue(update_stats.delay())