예제 #1
0
 def test_only_slash(self):
     self.assertEqual([], path.split_path('/'))
예제 #2
0
 def test_dirs(self):
     self.assertEqual(['foo', 'bar', 'baz'], path.split_path('foo/bar/baz'))
예제 #3
0
 def test_initial_slash_is_ignored(self):
     self.assertEqual(['foo', 'bar', 'baz'],
                      path.split_path('/foo/bar/baz'))
예제 #4
0
 def test_empty_path(self):
     self.assertEqual([], path.split_path(''))
예제 #5
0
 def test_single_dir(self):
     self.assertEqual(['foo'], path.split_path('foo'))
예제 #6
0
파일: test_path.py 프로젝트: mopidy/mopidy
 def test_only_slash(self):
     self.assertEqual([], path.split_path('/'))
예제 #7
0
파일: test_path.py 프로젝트: mopidy/mopidy
 def test_initial_slash_is_ignored(self):
     self.assertEqual(
         ['foo', 'bar', 'baz'], path.split_path('/foo/bar/baz'))
예제 #8
0
파일: test_path.py 프로젝트: mopidy/mopidy
 def test_dirs(self):
     self.assertEqual(['foo', 'bar', 'baz'], path.split_path('foo/bar/baz'))
예제 #9
0
파일: test_path.py 프로젝트: mopidy/mopidy
 def test_single_dir(self):
     self.assertEqual(['foo'], path.split_path('foo'))
예제 #10
0
파일: test_path.py 프로젝트: mopidy/mopidy
 def test_empty_path(self):
     self.assertEqual([], path.split_path(''))