diff options
Diffstat (limited to 'morphlib/gitdir_tests.py')
-rw-r--r-- | morphlib/gitdir_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/gitdir_tests.py b/morphlib/gitdir_tests.py index 0ec7b0f1..e75ef483 100644 --- a/morphlib/gitdir_tests.py +++ b/morphlib/gitdir_tests.py @@ -102,6 +102,12 @@ class GitDirectoryTests(unittest.TestCase): gitdir = self.empty_git_directory() self.assertIsInstance(gitdir.get_index(), morphlib.gitindex.GitIndex) + def test_non_existent_submodule_path_raises_error(self): + gitdir = self.empty_git_directory() + self.assertRaises( + morphlib.gitdir.MissingSubmoduleCommitError, + gitdir.get_submodule_commit, 'master', 'somepath') + class GitDirectoryAnchoredRefTests(unittest.TestCase): |