def test_path_to_module_strange_path(self): self.assertEqual( AppCache._path_to_module('..' + os.path.sep + 'apppath' + os.path.sep), 'apppath')
def test_path_to_module_trailing_slashes(self): self.assertEqual(AppCache._path_to_module('apppath' + os.path.sep), 'apppath')
def test_path_to_module_leading_slashes(self): self.assertEqual( AppCache._path_to_module('.' + os.path.sep + 'apppath'), 'apppath')
def test_path_to_module_no_slashes(self): self.assertEqual(AppCache._path_to_module('apppath'), 'apppath')
def test_path_to_module_strange_path(self): self.assertEqual(AppCache._path_to_module('..' + os.path.sep + 'apppath' + os.path.sep), 'apppath')
def test_path_to_module_leading_slashes(self): self.assertEqual(AppCache._path_to_module('.' + os.path.sep + 'apppath'), 'apppath')
def test_path_to_module_trailing_slashes(self): self.assertEqual(AppCache._path_to_module('apppath' + os.path.sep), 'apppath')
def test_path_to_module_no_slashes(self): self.assertEqual(AppCache._path_to_module('apppath'), 'apppath')