~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_cache_utf8.py

  • Committer: Martin Pool
  • Date: 2008-04-30 08:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 3396.
  • Revision ID: mbp@sourcefrog.net-20080430080411-imrex2wtwpb9eivj
_format_version_tuple can take a 3-tuple

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
 
110
110
        utf8_x = cache_utf8.encode(uni_x)
111
111
        self.assertIs(utf8_x, x)
 
112
 
 
113
    def test_decode_with_None(self):
 
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'))