~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

Deprecate LockableFiles.put_utf8

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
            self.assertEqual(unicode_string,
74
74
                unicode_stream.read())
75
75
            self.assertRaises(BzrBadParameterNotString,
76
 
                              self.lockable.put_utf8,
77
 
                              'bar',
78
 
                              StringIO(unicode_string)
79
 
                              )
80
 
            self.lockable.put_utf8('bar', unicode_string)
 
76
                self.applyDeprecated,
 
77
                deprecated_in((1, 6, 0)),
 
78
                self.lockable.put_utf8,
 
79
                'bar',
 
80
                StringIO(unicode_string))
 
81
            self.applyDeprecated(
 
82
                deprecated_in((1, 6, 0)),
 
83
                self.lockable.put_utf8,
 
84
                'bar',
 
85
                unicode_string)
81
86
            unicode_stream = self.applyDeprecated(
82
87
                deprecated_in((1, 5, 0)),
83
88
                self.lockable.get_utf8,