def test_getChunks_static_multichannel(self): lf = self.make_static_logfile("2:0a,3:1xx,2:0c,") lfp = logfile.LogFileProducer(lf, mock.Mock()) chunks = list(lfp.getChunks()) self.assertEqual(chunks, [(0, 'a'), (1, 'xx'), (0, 'c')])
def test_getChunks_static_helloworld(self): lf = self.make_static_logfile("13:0hello world!,") lfp = logfile.LogFileProducer(lf, mock.Mock()) chunks = list(lfp.getChunks()) self.assertEqual(chunks, [(0, 'hello world!')])