~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge3.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-19 08:42:39 UTC
  • mfrom: (1558.15.11 bzr.binaries)
  • Revision ID: pqm@pqm.ubuntu.com-20060419084239-730ca2dccc3bea14
diff and merge handle binaries safely

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from bzrlib.tests import TestCaseInTempDir, TestCase
19
19
from bzrlib.merge3 import Merge3
20
 
from bzrlib.errors import CantReprocessAndShowBase
 
20
from bzrlib.errors import CantReprocessAndShowBase, BinaryFile
21
21
 
22
22
def split_lines(t):
23
23
    from cStringIO import StringIO
324
324
        m_lines = m3.merge_lines('OTHER', 'THIS', reprocess=True, 
325
325
                                 base_marker='|||||||')
326
326
        self.assertRaises(CantReprocessAndShowBase, list, m_lines)
 
327
 
 
328
    def test_binary(self):
 
329
        self.assertRaises(BinaryFile, Merge3, ['\x00'], ['a'], ['b'])