Ejemplo n.º 1
0
 def testMultiple(self):
     self.assertEqual(utils.splitStringWithNumbers('Aaa-123-Bbb-456-Ccc'),
                      ['Aaa-', 123, '-Bbb-', 456, '-Ccc'])
Ejemplo n.º 2
0
 def testMiddle(self):
     self.assertEqual(utils.splitStringWithNumbers('abc-345-def'),
                      ['abc-', 345, '-def'])
Ejemplo n.º 3
0
 def testFinal(self):
     self.assertEqual(utils.splitStringWithNumbers('xyz-42'), ['xyz-', 42])
Ejemplo n.º 4
0
 def testMultiple(self):
     self.assertEqual(
         utils.splitStringWithNumbers("Aaa-123-Bbb-456-Ccc"),
         ["Aaa-", 123, "-Bbb-", 456, "-Ccc"],
     )
Ejemplo n.º 5
0
 def testInitial(self):
     self.assertEqual(utils.splitStringWithNumbers('12-abc'), [12, '-abc'])
Ejemplo n.º 6
0
 def testMiddle(self):
     self.assertEqual(
         utils.splitStringWithNumbers("abc-345-def"), ["abc-", 345, "-def"]
     )
Ejemplo n.º 7
0
 def testFinal(self):
     self.assertEqual(utils.splitStringWithNumbers("xyz-42"), ["xyz-", 42])
Ejemplo n.º 8
0
 def testInitial(self):
     self.assertEqual(utils.splitStringWithNumbers("12-abc"), [12, "-abc"])
Ejemplo n.º 9
0
 def testMultiple(self):
     self.assertEqual(utils.splitStringWithNumbers('Aaa-123-Bbb-456-Ccc'),
                      ['Aaa-', 123, '-Bbb-', 456, '-Ccc'])
Ejemplo n.º 10
0
 def testFinal(self):
     self.assertEqual(utils.splitStringWithNumbers('xyz-42'),
                      ['xyz-', 42])
Ejemplo n.º 11
0
 def testMiddle(self):
     self.assertEqual(utils.splitStringWithNumbers('abc-345-def'),
                      ['abc-', 345, '-def'])
Ejemplo n.º 12
0
 def testInitial(self):
     self.assertEqual(utils.splitStringWithNumbers('12-abc'),
                      [12, '-abc'])