def test_listProjectsPaths(self, list): print('starting now to auth') auth = Auth(username=logindetails.user, token=logindetails.token) activeGitlab = auth.authorizeUser() # create a Project object called project project = Project(projects=activeGitlab.projects, namespaces=activeGitlab.namespaces) # call the function to listProject paths - The API list function is mocked to return the Mockproject objects projpaths = project.listProjectsPaths() print(projpaths)