Esempio n. 1
0
 def test_option_root(self):
     result = []
     find_repos_in(TestFindRepos._repo_root_path, result)
     self.assertEqual(len(result), len(TestFindRepos._repo_list))
Esempio n. 2
0
 def test_relative_root(self):
     result = []
     find_repos_in(TestFindRepos._repo_root_path, result)
     relative = [relative_to(TestFindRepos._repo_root_path, repo) for repo in result]
     self.assertEqual(len(relative), len(TestFindRepos._repo_list))
     self.assertEqual(sorted(relative), sorted(TestFindRepos._repo_list))
Esempio n. 3
0
 def test_option_empty(self):
     result = []
     find_repos_in(TestFindRepos._repo_empty_path, result)
     self.assertEqual(len(result), 0)