Exemplo n.º 1
0
    def test_update_all(self):
        self.channel1.update_channel(download=False)
        self.channel2.update_channel(download=False)
        self.mock.ReplayAll()
        tasks.update_all_channels()
        self.mock.VerifyAll()

        self.assertTrue(hasattr(tasks.update_all_channels, 'apply_async'))
Exemplo n.º 2
0
 def test_update_all_force_download(self):
     self.channel1.update_channel(download=True)
     self.channel2.update_channel(download=True)
     self.mock.ReplayAll()
     tasks.update_all_channels(force_download=True)
     self.mock.VerifyAll()