Ejemplo n.º 1
0
 def test_equalize_widths(self):
     self.assertEqual(['09', '10'],
                      list(seq(10, first=9, equalize_widths=True)))
Ejemplo n.º 2
0
 def test_3_to_10(self):
     self.assertEqual(self.str([3, 4, 5, 6, 7, 8, 9, 10]),
                      list(seq(10, first=3)))
Ejemplo n.º 3
0
 def test_3_to_10_by_2(self):
     self.assertEqual(self.str([3, 5, 7, 9]), list(seq(10, first=3,
                                                       incr=2)))
Ejemplo n.º 4
0
 def test_3(self):
     self.assertEqual(self.str([1, 2, 3]), list(seq(3)))
Ejemplo n.º 5
0
 def test_equalize_widths(self):
     self.assertEqual(['09', '10'], list(seq(10, first=9, equalize_widths=True)))
Ejemplo n.º 6
0
 def test_3_to_10_by_2(self):
     self.assertEqual(self.str([3, 5, 7, 9]), list(seq(10, first=3, incr=2)))
Ejemplo n.º 7
0
 def test_3_to_10(self):
     self.assertEqual(self.str([3, 4, 5, 6, 7, 8, 9, 10]), list(seq(10, first=3)))
Ejemplo n.º 8
0
 def test_3(self):
     self.assertEqual(self.str([1, 2, 3]), list(seq(3)))