/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_symbol_versioning.py

  • Committer: Jelmer Vernooij
  • Date: 2009-02-25 14:36:59 UTC
  • mfrom: (4048 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4049.
  • Revision ID: jelmer@samba.org-20090225143659-vx6cbqtmyicuzfyf
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    def setUp(self):
51
51
        super(TestDeprecationWarnings, self).setUp()
52
52
        self._warnings = []
53
 
    
 
53
 
54
54
    @symbol_versioning.deprecated_method(symbol_versioning.zero_seven)
55
55
    def deprecated_method(self):
56
56
        """Deprecated method docstring.
57
 
        
 
57
 
58
58
        This might explain stuff.
59
59
        """
60
60
        return 1
90
90
            "TestDeprecationWarnings.deprecated_method "
91
91
            "was deprecated in version 0.7.", DeprecationWarning, 2)
92
92
        expected_docstring = ('Deprecated method docstring.\n'
93
 
                              '        \n'
 
93
                              '\n'
94
94
                              '        This might explain stuff.\n'
95
95
                              '        \n'
96
96
                              '        This method was deprecated in version 0.7.\n'
188
188
            self.assertTrue(deprecated_callable.is_deprecated)
189
189
        finally:
190
190
            symbol_versioning.set_warning_method(old_warning_method)
191
 
    
 
191
 
192
192
    def test_deprecated_passed(self):
193
193
        self.assertEqual(True, symbol_versioning.deprecated_passed(None))
194
194
        self.assertEqual(True, symbol_versioning.deprecated_passed(True))