Mercurial > kallithea
diff rhodecode/tests/vcs/test_inmemchangesets.py @ 2894:2654edfb1700 beta
fixes #591 git backend was causing encoding errors when handling binary files
- added a test case for VCS lib tests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 03 Oct 2012 20:20:16 +0200 |
parents | 402a96fcfa22 |
children | d7488551578e |
line wrap: on
line diff
--- a/rhodecode/tests/vcs/test_inmemchangesets.py Wed Oct 03 19:02:40 2012 +0200 +++ b/rhodecode/tests/vcs/test_inmemchangesets.py Wed Oct 03 20:20:16 2012 +0200 @@ -44,6 +44,7 @@ FileNode('foobar2', content='Foo & bar, doubled!'), FileNode('foo bar with spaces', content=''), FileNode('foo/bar/baz', content='Inside'), + FileNode('foo/bar/file.bin', content='\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00;\x00\x03\x00\xfe\xff\t\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x18\x00\x00\x00\x01\x00\x00\x00\xfe\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'), ] def test_add(self):