~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_cache_utf8.py

  • Committer: Robert Collins
  • Date: 2007-03-04 22:10:43 UTC
  • mto: (2255.11.4 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070304221043-gxthr6yo2w4yy6mx
Add convenience utf8 decode routine for handling strings that might be None

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, 0), cache_utf8._utf8_decode_with_None(None))