Beispiel #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)
Beispiel #2
0
 def test_root(self):
     expected = [os.path.sep]
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
Beispiel #3
0
 def test_file(self):
     expected = ['zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
Beispiel #4
0
 def test_empty(self):
     expected = []
     folders = ''
     result = split(folders)
     self.assertEqual(expected, result)
Beispiel #5
0
 def test_basic(self):
     expected = ['foo', 'bar', 'zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)