def test_print_2(self) : w = StringIO.StringIO() printer(w, [2, 6]) self.assert_(w.getvalue() == "2\n2\n6\n")
def test_print_3(self) : w = StringIO.StringIO() printer(w, [4, 56, 78, 509687, 1234567890]) self.assert_(w.getvalue() == "5\n4\n56\n78\n509687\n1234567890\n")
def test_print_1(self) : w = StringIO.StringIO() printer(w, [4, 56, 78]) self.assert_(w.getvalue() == "3\n4\n56\n78\n")