/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: James Blackwell
  • Date: 2006-05-05 01:05:04 UTC
  • mfrom: (1697 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1700.
  • Revision ID: jblack@merconline.com-20060505010504-264cb48507e53b64
mergedĀ mainline

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'))