~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

Merge from bzr.dev

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())
63
66
        finally:
64
67
            self.lockable.unlock()
65
68