def test_print (self) : w = StringIO.StringIO() collatz_print(w, (1, 10), 20) self.assert_(w.getvalue() == "1 10 20\n")
def test_print (self) : w = StringIO() collatz_print(w, 1, 10, 20) self.assertEqual(w.getvalue(), "1 10 20\n")
def test_print(self): w = io.StringIO() collatz_print(w, [(1, 10, 20)]) self.assertTrue(w.getvalue() == "1 10 20\n")
def test_print (self) : w = io.StringIO() collatz_print(w, 1, 10, 20) self.assertTrue(w.getvalue() == "1 10 20\n")
def test_print(self): w = StringIO() collatz_print(w, 1, 10, 20) self.assertEqual(w.getvalue(), "1 10 20\n")