~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_cache_utf8.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-16 19:13:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2363.
  • Revision ID: john@arbash-meinel.com-20070316191340-pddd21esqtzr35zp
Change utf8_decode_with_None to return what we care about.
Re-use utf8_decode_with_None in the outer loop to avoid decoding in the inner
process_entry
Change the name of the local variable, to make it clear what we are doing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        self.assertIs(utf8_x, x)
112
112
 
113
113
    def test_decode_with_None(self):
114
 
        self.assertEqual((None, 0), cache_utf8._utf8_decode_with_None(None))
 
114
        self.assertEqual(None, cache_utf8._utf8_decode_with_None(None))
 
115
        self.assertEqual(u'foo', cache_utf8._utf8_decode_with_None('foo'))
 
116
        self.assertEqual(u'f\xb5',
 
117
                         cache_utf8._utf8_decode_with_None('f\xc2\xb5'))