示例#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')