1
from bzrlib.errors import BinaryFile
2
from bzrlib.patch import diff3
3
from bzrlib.tests import TestCaseInTempDir
5
class TestPatch(TestCaseInTempDir):
6
def test_diff3_binaries(self):
7
file('this', 'wb').write('a')
8
file('other', 'wb').write('a')
9
file('base', 'wb').write('\x00')
10
self.assertRaises(BinaryFile, diff3, 'unused', 'this', 'other', 'base')