Wed May 19 02:31:24 CEST 2010 Francois Deppierraz * test_cli.py: additionnal tests for unicode arguments in CLI diff -rN -u old-tahoe-534/src/allmydata/test/test_cli.py new-tahoe-534/src/allmydata/test/test_cli.py --- old-tahoe-534/src/allmydata/test/test_cli.py 2010-05-19 02:32:26.693908049 +0200 +++ new-tahoe-534/src/allmydata/test/test_cli.py 2010-05-19 02:32:26.793908929 +0200 @@ -660,6 +660,18 @@ self.failUnlessEqual(stdout, "Blah blah blah") d.addCallback(_check_get) + # Ensure that an Unicode filename in an Unicode alias works as expected + d.addCallback(lambda res: self.do_cli("put", "-", "études:lumière.txt", + stdin="Let the sunshine In!")) + + d.addCallback(lambda res: self.do_cli("get", + get_aliases(self.get_clientdir())[u"études"] + "/lumière.txt")) + def _check_get((rc, stdout, stderr)): + self.failUnlessEqual(rc, 0) + self.failIf(stderr) + self.failUnlessEqual(stdout, "Let the sunshine In!") + d.addCallback(_check_get) + return d