def test_read(self): r = StringIO.StringIO("1 10\n") a = [0, 0] b = collatz_read(r, a) self.assert_(b == True) self.assert_(a[0] == 1) self.assert_(a[1] == 10)
def test_read (self) : r = StringIO.StringIO("1 10\n") p = collatz_read(r) (i, j) = p.next() self.assert_(i == 1) self.assert_(j == 10)
def test_read (self) : r = StringIO("1 10\n100 200\n201 210\n900 1000\n") a = collatz_read(r) i, j = a self.assertEqual(i, 1) self.assertEqual(j, 10)
def test_read (self) : r = StringIO("1 10\n100 200\n201 210\n900 1000\n") x = tuple(collatz_read(r)) self.assertEqual(x, ([1, 10], [100, 200], [201, 210], [900, 1000]))
def test_read(self): r = StringIO("1 10\n100 200\n201 210\n900 1000\n") a = collatz_read(r) i, j = a self.assertEqual(i, 1) self.assertEqual(j, 10)