def test_folder_path_remove_multiple_slashes(self): self.assertEqual(normalise_folder_path('/path//to/folder///'), '/path/to/folder')
def test_folder_path_with_trailing_slash(self): self.assertEqual(normalise_folder_path('/path/to/folder/'), '/path/to/folder')
def test_folder_path_slashes_reversed(self): self.assertEqual(normalise_folder_path('path/to/folder/'), '/path/to/folder')
def test_already_normalised_folder_path(self): self.assertEqual(normalise_folder_path('/path/to/folder'), '/path/to/folder')
def test_folder_path_without_leading_slash(self): self.assertEqual(normalise_folder_path('path/to/folder'), '/path/to/folder')
def test_empty_folder_path(self): self.assertEqual(normalise_folder_path(''),'/')
def test_empty_folder_path(self): self.assertEqual(normalise_folder_path(''), '/')