Ejemplo n.º 1
0
 def test_root_more(self):
     expected = ['', 'foo', 'bar', 'zaz']
     folders = os.path.sep.join(expected)
     expected[0] = os.path.sep  # if it was originally, would start with '//'
     result = split(folders)
     self.assertEqual(expected, result)
Ejemplo n.º 2
0
 def test_root(self):
     expected = [os.path.sep]
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
Ejemplo n.º 3
0
 def test_file(self):
     expected = ['zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
Ejemplo n.º 4
0
 def test_empty(self):
     expected = []
     folders = ''
     result = split(folders)
     self.assertEqual(expected, result)
Ejemplo n.º 5
0
 def test_basic(self):
     expected = ['foo', 'bar', 'zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)