~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_textfile.py

  • Committer: Aaron Bentley
  • Date: 2006-04-19 02:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1673.
  • Revision ID: aaron.bentley@utoronto.ca-20060419021605-7f28e84382ceef4d
Apply merge review suggestions

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        check_text_lines(lines)
37
37
        lines = ['a' * 1023 + '\x00']
38
38
        self.assertRaises(BinaryFile, check_text_lines, lines)
39
 
        lines = ['a' * 1024 + '\x00']
40
 
        check_text_lines(lines)
41
39
 
42
40
 
43
41
class TextPath(TestCaseInTempDir):
47
45
        check_text_path('boo')
48
46
        file('boo', 'wb').write('a' * 1023 + '\x00')
49
47
        self.assertRaises(BinaryFile, check_text_path, 'boo')
50
 
        file('boo', 'wb').write('a' * 1024 + '\x00')
51
 
        check_text_path('boo')