Пример #1
0
 def testAdvancedSequence2(self):
     self.assertEquals(
         "5-15x5,1-5,22",
         fileseq.framesToFrameRange([5, 10, 15, 1, 2, 3, 4, 5, 22],
                                    sort=False))
     self.assertEquals(
         "1-5,5-15x5,22",
         fileseq.framesToFrameRange([5, 10, 15, 1, 2, 3, 4, 5, 22]))
Пример #2
0
 def testBrokenChunkedSequence(self):
     self.assertEquals(
         "1-9x2,2-10x2",
         fileseq.framesToFrameRange([1, 3, 5, 7, 9, 2, 4, 6, 8, 10],
                                    sort=False))
     self.assertEquals(
         "1-10", fileseq.framesToFrameRange([1, 3, 5, 7, 9, 2, 4, 6, 8,
                                             10]))
Пример #3
0
	def testBrokenSequence2(self):
		self.assertEquals("1,2,4-8", fileseq.framesToFrameRange([1,2,4,5,6,7,8]))
Пример #4
0
	def testBrokenSequence(self):
		self.assertEquals("2,3,9,12", fileseq.framesToFrameRange([2,3,9,12]))
Пример #5
0
	def testSimpleSequence(self):
		self.assertEquals("1-5", fileseq.framesToFrameRange([1,2,3,4,5]))
Пример #6
0
	def testAdvancedSequence2(self):
		self.assertEquals("5-15x5,1-5,22", fileseq.framesToFrameRange([5,10,15,1,2,3,4,5,22], sort=False))
		self.assertEquals("1-5,5-15x5,22", fileseq.framesToFrameRange([5,10,15,1,2,3,4,5,22]))
Пример #7
0
 def testAdvancedSequence(self):
     self.assertEquals("1-3,6-8,12",
                       fileseq.framesToFrameRange([1, 2, 3, 6, 7, 8, 12]))
Пример #8
0
	def testOutOfOrderSimpleSequence(self):
		self.assertEquals("1-5", fileseq.framesToFrameRange([2,4,1,2,3,4,5]))
Пример #9
0
	def testDuplicatedSequence(self):
		self.assertEquals("1,2", fileseq.framesToFrameRange([1,1,1,2,2,2]))
		self.assertEquals("-1,1", fileseq.framesToFrameRange([-1,-1,-1,1,1,1]))
Пример #10
0
 def testNegativeSimpleSequence(self):
     self.assertEquals("-5-0",
                       fileseq.framesToFrameRange([-5, -4, -3, -2, -1, 0]))
Пример #11
0
 def testDuplicatedSequence(self):
     self.assertEquals("1-2", fileseq.framesToFrameRange([1, 1, 1, 2, 2,
                                                          2]))
     self.assertEquals("-1,1",
                       fileseq.framesToFrameRange([-1, -1, -1, 1, 1, 1]))
Пример #12
0
 def testChunkedSequence(self):
     self.assertEquals("5-25x5",
                       fileseq.framesToFrameRange([5, 10, 15, 20, 25]))
Пример #13
0
 def testBrokenSequence2(self):
     self.assertEquals("1-2,4-8",
                       fileseq.framesToFrameRange([1, 2, 4, 5, 6, 7, 8]))
Пример #14
0
 def testBrokenSequence(self):
     self.assertEquals("2-3,9,12", fileseq.framesToFrameRange([2, 3, 9,
                                                               12]))
Пример #15
0
	def testChunkedSequence(self):
		self.assertEquals("5-25x5", fileseq.framesToFrameRange([5,10,15,20,25]))
Пример #16
0
 def testOutOfOrderSimpleSequence(self):
     self.assertEquals("1-5",
                       fileseq.framesToFrameRange([2, 4, 1, 2, 3, 4, 5]))
Пример #17
0
	def testBrokenChunkedSequence(self):
		self.assertEquals("1-9x2,2-10x2", fileseq.framesToFrameRange([1,3,5,7,9,2,4,6,8,10], sort=False))
		self.assertEquals("1-10", fileseq.framesToFrameRange([1,3,5,7,9,2,4,6,8,10]))
Пример #18
0
 def testOutOfOrderSimpleSequence(self):
     self.assertEquals("1,10", fileseq.framesToFrameRange([10, 1]))
     self.assertEquals("10,1", fileseq.framesToFrameRange([10, 1], False))
Пример #19
0
	def testNegativeSimpleSequence(self):
		self.assertEquals("-5-0", fileseq.framesToFrameRange([-5,-4,-3,-2,-1,0]))
Пример #20
0
	def testAdvancedSequence(self):
		self.assertEquals("1-3,6-8,12", fileseq.framesToFrameRange([1,2,3,6,7,8,12]))
Пример #21
0
	def testOutOfOrderSimpleSequence(self):
		self.assertEquals("1,10", fileseq.framesToFrameRange([10,1]))
		self.assertEquals("10,1", fileseq.framesToFrameRange([10,1], False))
Пример #22
0
 def testSimpleSequence(self):
     self.assertEquals("1-5", fileseq.framesToFrameRange([1, 2, 3, 4, 5]))