Delete a project

This commit is contained in:
Julien Duponchelle committed 2015-01-23 11:48:20 +01:00
1 parent 9a0b260c56
commit 986a7f55ef
4 files changed
+54 -2

No files matched your search

+8
View File
@@ -81,3 +81,11 @@ def test_commit(tmpdir, manager):
project.commit()
assert len(project._vms_to_destroy) == 0
assert os.path.exists(directory) is False
def test_project_delete(tmpdir):
project = Project(location=str(tmpdir))
directory = project.path
assert os.path.exists(directory)
project.delete()
assert os.path.exists(directory) is False