예제 #1
0
파일: test_app.py 프로젝트: Darshnik/dxr
 def test_root_folder(self):
     """Make sure the root folder is treated correctly."""
     eq_(_linked_pathname('', 'stuff'), [('/stuff/source', 'stuff')])
예제 #2
0
 def test_root_folder(self):
     """Make sure the root folder is treated correctly."""
     eq_(_linked_pathname('', 'stuff'), [('/stuff/source', 'stuff')])
예제 #3
0
파일: test_app.py 프로젝트: Darshnik/dxr
 def test_deep_path(self):
     """Make sure paths more than one level deep are linked correctly."""
     eq_(_linked_pathname('hey/thankyou', 'code'),
         [('/code/source', 'code'),
          ('/code/source/hey', 'hey'),
          ('/code/source/hey/thankyou', 'thankyou')])
예제 #4
0
 def test_deep_path(self):
     """Make sure paths more than one level deep are linked correctly."""
     eq_(_linked_pathname('hey/thankyou', 'code'),
         [('/code/source', 'code'), ('/code/source/hey', 'hey'),
          ('/code/source/hey/thankyou', 'thankyou')])