def test_shorter_gen_and_list(self):
        self.assertTrue(shorter(range(2), [1, 2, 3]))
        self.assertFalse(shorter([1, 2, 3, 4], range(2)))

        self.assertTrue(shorter([0], count()))
        self.assertFalse(shorter(count(), [1, 2, 3]))
Test shorter function on generators and lists
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_functional.py/TestShorter.test_shorter_gen_and_list