/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Andrew Bennetts
  • Date: 2007-03-28 07:08:42 UTC
  • mfrom: (2380 +trunk)
  • mto: (2018.5.146 hpss)
  • mto: This revision was merged to the branch mainline in revision 2414.
  • Revision ID: andrew.bennetts@canonical.com-20070328070842-r843houy668oxb9o
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                              StringIO(unicode_string)
67
67
                              )
68
68
            self.lockable.put_utf8('bar', unicode_string)
69
 
            self.assertEqual(unicode_string, 
 
69
            self.assertEqual(unicode_string,
70
70
                             self.lockable.get_utf8('bar').read())
71
 
            self.assertEqual(byte_string, 
 
71
            self.assertEqual(byte_string,
72
72
                             self.lockable.get('bar').read())
 
73
            self.lockable.put_bytes('raw', 'raw\xffbytes')
 
74
            self.assertEqual('raw\xffbytes',
 
75
                             self.lockable.get('raw').read())
73
76
        finally:
74
77
            self.lockable.unlock()
75
78