~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Aaron Bentley
  • Date: 2006-11-10 01:55:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: aaron.bentley@utoronto.ca-20061110015555-f48202744b630209
Ignore html docs (both kinds)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                              StringIO(unicode_string)
57
57
                              )
58
58
            self.lockable.put_utf8('bar', unicode_string)
59
 
            self.assertEqual(unicode_string,
 
59
            self.assertEqual(unicode_string, 
60
60
                             self.lockable.get_utf8('bar').read())
61
 
            self.assertEqual(byte_string,
 
61
            self.assertEqual(byte_string, 
62
62
                             self.lockable.get('bar').read())
63
 
            self.lockable.put_bytes('raw', 'raw\xffbytes')
64
 
            self.assertEqual('raw\xffbytes',
65
 
                             self.lockable.get('raw').read())
66
63
        finally:
67
64
            self.lockable.unlock()
68
65