summaryrefslogtreecommitdiff
path: root/morphlib/sysbranchdir_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/sysbranchdir_tests.py')
-rw-r--r--morphlib/sysbranchdir_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/morphlib/sysbranchdir_tests.py b/morphlib/sysbranchdir_tests.py
index e75122cc..7ee04c7d 100644
--- a/morphlib/sysbranchdir_tests.py
+++ b/morphlib/sysbranchdir_tests.py
@@ -162,6 +162,15 @@ class SystemBranchDirectoryTests(unittest.TestCase):
sb.get_git_directory_name(url),
os.path.join(self.root_directory, stripped))
+ def test_reports_correct_path_for_file_in_repository(self):
+ sb = morphlib.sysbranchdir.create(
+ self.root_directory,
+ self.root_repository_url,
+ self.system_branch_name)
+ self.assertEqual(
+ sb.get_filename('test:chunk', 'foo'),
+ os.path.join(self.root_directory, 'test:chunk/foo'))
+
def test_reports_correct_name_for_git_directory_from_file_url(self):
stripped = 'foobar/morphs'
url = 'file:///%s.git' % stripped