~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-16 17:49:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1673.
  • Revision ID: aaron.bentley@utoronto.ca-20060416174914-99d5dec4eafbb923
Whitespace fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
 
24
24
class TextFile(TestCase):
 
25
 
25
26
    def test_text_file(self):
26
27
        s = StringIO('ab' * 2048)
27
28
        self.assertEqual(text_file(s).read(), s.getvalue())
38
39
        lines = ['a' * 1024 + '\x00']
39
40
        check_text_lines(lines)
40
41
 
 
42
 
41
43
class TextPath(TestCaseInTempDir):
 
44
 
42
45
    def test_text_file(self):
43
46
        file('boo', 'wb').write('ab' * 2048)
44
47
        check_text_path('boo')