Chromium Code Reviews| Index: tests/patch_test.py |
| diff --git a/tests/patch_test.py b/tests/patch_test.py |
| index 671e5c92579fe035bd619662162cc32c14cf0ad9..68cda901d527668bf069a308117d26686f86f17b 100755 |
| --- a/tests/patch_test.py |
| +++ b/tests/patch_test.py |
| @@ -275,6 +275,12 @@ class PatchTest(unittest.TestCase): |
| p, 'file_b', RAW.MINIMAL_RENAME, source_filename='file_a', is_new=True, |
| nb_hunks=0) |
| + def testUnicodeFilenameGet(self): |
| + p = patch.FilePatchDiff(u'file_b', RAW.MINIMAL_RENAME, []) |
|
cmp
2012/02/14 18:11:59
This string (u'file_b') can be both encoded and de
|
| + self.assertTrue(isinstance(p.get(False), str)) |
| + p.set_relpath('foo') |
| + self.assertTrue(isinstance(p.get(False), str)) |
| + |
| def testGitCopyPartial(self): |
| p = patch.FilePatchDiff('wtf2', GIT.COPY_PARTIAL, []) |
| self._check_patch( |