~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-17 17:21:14 UTC
  • mfrom: (2229.2.5 reserved-ids)
  • Revision ID: pqm@pqm.ubuntu.com-20070117172114-dc75493dad46088c
Ensure reserved ids are never stored

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