diff --git a/tests/test_pagure_lib_git.py b/tests/test_pagure_lib_git.py index 5f45ec5..bf85b02 100644 --- a/tests/test_pagure_lib_git.py +++ b/tests/test_pagure_lib_git.py @@ -1389,6 +1389,14 @@ index 0000000..60f7480 os.path.join(tests.HERE, 'forks', 'pingou', 'foo.test.git')) self.assertEqual(repo_name, 'pingou') + repo_name = pagure.lib.git.get_username( + os.path.join(tests.HERE, 'forks', 'pingou', 'bar/foo.test.git')) + self.assertEqual(repo_name, 'pingou') + + repo_name = pagure.lib.git.get_username(os.path.join( + tests.HERE, 'forks', 'pingou', 'fooo/bar/foo.test.git')) + self.assertEqual(repo_name, 'pingou') + if __name__ == '__main__': SUITE = unittest.TestLoader().loadTestsFromTestCase(PagureLibGittests)