Example #1
0
 def test_print (self) :
     w = StringIO.StringIO()
     collatz_print(w, (1, 10), 20)
     self.assert_(w.getvalue() == "1 10 20\n")
Example #2
0
 def test_print (self) :
     w = StringIO()
     collatz_print(w, 1, 10, 20)
     self.assertEqual(w.getvalue(), "1 10 20\n")
Example #3
0
 def test_print(self):
     w = io.StringIO()
     collatz_print(w, [(1, 10, 20)])
     self.assertTrue(w.getvalue() == "1 10 20\n")
Example #4
0
 def test_print (self) :
     w = io.StringIO()
     collatz_print(w, 1, 10, 20)
     self.assertTrue(w.getvalue() == "1 10 20\n")
Example #5
0
 def test_print(self):
     w = StringIO()
     collatz_print(w, 1, 10, 20)
     self.assertEqual(w.getvalue(), "1 10 20\n")