summaryrefslogtreecommitdiff
path: root/morphlib/morphology_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-01 13:08:55 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-12-01 13:08:55 +0000
commit71aa6dc4b72374aa84b4c1bb4067a2b7841e4322 (patch)
tree25ac7867efd4706108cb683111753529163eeeb3 /morphlib/morphology_tests.py
parent6136d3edd1129f5f6b517d83eb74866459b9c22f (diff)
downloadmorph-71aa6dc4b72374aa84b4c1bb4067a2b7841e4322.tar.gz
make --git-base-url add a slash to the end, if missing
Diffstat (limited to 'morphlib/morphology_tests.py')
-rw-r--r--morphlib/morphology_tests.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/morphlib/morphology_tests.py b/morphlib/morphology_tests.py
index d1e052a8..9a8517e1 100644
--- a/morphlib/morphology_tests.py
+++ b/morphlib/morphology_tests.py
@@ -106,12 +106,17 @@ class MorphologyTests(unittest.TestCase):
"ref": "ref"
}
]
- }'''))
+ }'''),
+ baseurl='git://example.com')
self.assertEqual(morph.kind, 'stratum')
self.assertEqual(morph.filename, 'mockfile')
self.assertEqual(morph.sources,
[
- { 'name': 'foo', 'repo': 'foo/', 'ref': 'ref' },
+ {
+ u'name': u'foo',
+ u'repo': u'git://example.com/foo/',
+ u'ref': u'ref'
+ },
])
def test_accepts_valid_system_morphology(self):