def execute(self): return api._combine(self.stdout.readlines(), self.stderr.readlines())
def test_combine(self): list1 = ['foo', 'bar'] list2 = ['baz'] combined = list(_combine(list1, list2)) self.assertEqual([('foo', 'baz'), ('bar', None)], combined)