def test_read_2(self): io = ListSource() self.assertEqual([], list(io.read()))
def test_read_1(self): io = ListSource(['a', 'b']) self.assertEqual(["a", 'b'], list(io.read()))