예제 #1
0
 def test_path_to_module_strange_path(self):
     self.assertEqual(
         AppCache._path_to_module('..' + os.path.sep + 'apppath' +
                                  os.path.sep), 'apppath')
예제 #2
0
 def test_path_to_module_trailing_slashes(self):
     self.assertEqual(AppCache._path_to_module('apppath' + os.path.sep),
                      'apppath')
예제 #3
0
 def test_path_to_module_leading_slashes(self):
     self.assertEqual(
         AppCache._path_to_module('.' + os.path.sep + 'apppath'), 'apppath')
예제 #4
0
 def test_path_to_module_no_slashes(self):
     self.assertEqual(AppCache._path_to_module('apppath'), 'apppath')
예제 #5
0
 def test_path_to_module_strange_path(self):
     self.assertEqual(AppCache._path_to_module('..' + os.path.sep + 'apppath' + os.path.sep), 'apppath')
예제 #6
0
 def test_path_to_module_leading_slashes(self):
     self.assertEqual(AppCache._path_to_module('.' + os.path.sep + 'apppath'), 'apppath')
예제 #7
0
 def test_path_to_module_trailing_slashes(self):
     self.assertEqual(AppCache._path_to_module('apppath' + os.path.sep), 'apppath')
예제 #8
0
 def test_path_to_module_no_slashes(self):
     self.assertEqual(AppCache._path_to_module('apppath'), 'apppath')