~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        self.assertRaises(BzrBadParameterNotUnicode,
91
91
                          osutils.safe_unicode,
92
92
                          '\xbb\xbb')
 
93
 
 
94
 
 
95
class TestSplitLines(TestCase):
 
96
 
 
97
    def test_split_unicode(self):
 
98
        self.assertEqual([u'foo\n', u'bar\xae'],
 
99
                         osutils.split_lines(u'foo\nbar\xae'))
 
100
        self.assertEqual([u'foo\n', u'bar\xae\n'],
 
101
                         osutils.split_lines(u'foo\nbar\xae\n'))
 
102
 
 
103
    def test_split_with_carriage_returns(self):
 
104
        self.assertEqual(['foo\rbar\n'],
 
105
                         osutils.split_lines('foo\rbar\n'))