예제 #1
0
파일: test_os.py 프로젝트: vitiral/cloudtb
 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)
예제 #2
0
파일: test_os.py 프로젝트: vitiral/cloudtb
 def test_root(self):
     expected = [os.path.sep]
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
예제 #3
0
파일: test_os.py 프로젝트: vitiral/cloudtb
 def test_file(self):
     expected = ['zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)
예제 #4
0
파일: test_os.py 프로젝트: vitiral/cloudtb
 def test_empty(self):
     expected = []
     folders = ''
     result = split(folders)
     self.assertEqual(expected, result)
예제 #5
0
파일: test_os.py 프로젝트: vitiral/cloudtb
 def test_basic(self):
     expected = ['foo', 'bar', 'zaz']
     folders = os.path.sep.join(expected)
     result = split(folders)
     self.assertEqual(expected, result)