Mercurial > bitten > bitten-test
changeset 614:0c96346efa29
0.6dev: New test for [685] failed on Windows. Doh.
author | osimons |
---|---|
date | Sat, 01 Aug 2009 12:24:10 +0000 |
parents | b4d32c0ab577 |
children | d960021f902f |
files | bitten/tests/recipe.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/tests/recipe.py +++ b/bitten/tests/recipe.py @@ -28,10 +28,11 @@ def test_vars_basedir(self): config = Configuration(properties={'foo.bar': 'baz'}) - ctxt = Context('/foo/${path}/${foo.bar}', config, - {'path': 'bar'}) + ctxt = Context('%s/${path}/${foo.bar}' % os.path.realpath('/foo'), + config, {'path': 'bar'}) - self.assertEquals('/foo/bar/baz', ctxt.vars['basedir']) + self.assertEquals(os.path.realpath('/foo/bar/baz'), + ctxt.vars['basedir']) class RecipeTestCase(unittest.TestCase):