def test_files_get_module_slug_name(self): """ Test getting module slug from path """ files_view = FilesView() module = 'test-module' path = '/v3/files/test-module-1.2.3.tar.gz' module_name = files_view._get_module_slug_name(path) self.assertEqual(module, module_name)