]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
test_stringutils.py: Mock the open() call in test_open_unicode
authorFrancois Deppierraz <francois@ctrlaltdel.ch>
Fri, 21 May 2010 13:58:17 +0000 (06:58 -0700)
committerFrancois Deppierraz <francois@ctrlaltdel.ch>
Fri, 21 May 2010 13:58:17 +0000 (06:58 -0700)
commit1aeff621613aed3e2be24d9c216458f73cb707fa
treedd55f8f82010d2e05a93a109861e9dac7fec0314
parenteecaaca6b7e1f370321de91f023fab5b814b2101
test_stringutils.py: Mock the open() call in test_open_unicode

This test ensure that open(a_unicode_string) is used on Unicode platforms
(Windows or MacOS X) and that open(a_correctly_encoded_bytestring) on other
platforms such as Unix.
src/allmydata/test/test_stringutils.py