summaryrefslogtreecommitdiff
path: root/morphlib/workspace_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-01 11:57:15 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-06 16:28:16 +0100
commitddb490714f43119441aabdd492d09520c73e3448 (patch)
treeaf4167d82e9217e3ca046d78493ca87ba998eea9 /morphlib/workspace_tests.py
parent2dcda95c15ca788f47bd49f85618364635088b0d (diff)
downloadmorph-ddb490714f43119441aabdd492d09520c73e3448.tar.gz
Add Workspace.create_system_branch_directory method
Diffstat (limited to 'morphlib/workspace_tests.py')
-rw-r--r--morphlib/workspace_tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/workspace_tests.py b/morphlib/workspace_tests.py
index b9c4957a..83b5e54f 100644
--- a/morphlib/workspace_tests.py
+++ b/morphlib/workspace_tests.py
@@ -91,3 +91,11 @@ class WorkspaceTests(unittest.TestCase):
ws.get_default_system_branch_directory_name(branch),
os.path.join(self.workspace_dir, branch))
+ def test_creates_system_branch_directory(self):
+ self.create_it()
+ ws = morphlib.workspace.open(self.workspace_dir)
+ url = 'test:morphs'
+ branch = 'my/new/thing'
+ sb = ws.create_system_branch_directory(url, branch)
+ self.assertTrue(type(sb), morphlib.sysbranchdir.SystemBranchDirectory)
+