summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r--git/test/test_submodule.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index 484e73ae..bb488502 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -656,3 +656,17 @@ class TestSubmodule(TestBase):
assert os.path.isfile(module_repo_path)
assert find_git_dir(module_repo_path) is not None, "module pointed to by .git file must be valid"
# end verify submodule 'style'
+
+ # test move
+ new_sm_path = 'submodules/one'
+ sm.set_parent_commit(parent.commit())
+ sm.move(new_sm_path)
+ assert sm.exists()
+ assert sm.module_exists()
+
+ # remove
+ sm.remove()
+ assert sm.exist()
+ sm_module_path = sm.module().git_dir
+ assert sm.module_exists()
+ assert os.path.isdir(sm_module_path)