summaryrefslogtreecommitdiff
path: root/morphlib/workspace_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/workspace_tests.py')
-rw-r--r--morphlib/workspace_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/morphlib/workspace_tests.py b/morphlib/workspace_tests.py
index 83b5e54f..b25be35e 100644
--- a/morphlib/workspace_tests.py
+++ b/morphlib/workspace_tests.py
@@ -99,3 +99,13 @@ class WorkspaceTests(unittest.TestCase):
sb = ws.create_system_branch_directory(url, branch)
self.assertTrue(type(sb), morphlib.sysbranchdir.SystemBranchDirectory)
+ def test_lists_created_system_branches(self):
+ self.create_it()
+ ws = morphlib.workspace.open(self.workspace_dir)
+
+ branches = ["branch/1", "branch/2"]
+ for branch in branches:
+ ws.create_system_branch_directory('test:morphs', branch)
+ self.assertEqual(sorted(sb.system_branch_name
+ for sb in ws.list_system_branches()),
+ branches)