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