def test_update_channel(self): self.channel1.update_channel(download=False) self.mock.ReplayAll() tasks.update_channel(self.channel1.slug) self.mock.VerifyAll() self.assertTrue(hasattr(tasks.update_channel, 'apply_async'))
def test_update_channel_force_download(self): self.channel1.update_channel(download=True) self.mock.ReplayAll() tasks.update_channel(self.channel1.slug, force_download=True) self.mock.VerifyAll()