~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_symbol_versioning.py

  • Committer: wang
  • Date: 2006-10-29 13:41:32 UTC
  • mto: (2104.4.1 wang_65714)
  • mto: This revision was merged to the branch mainline in revision 2109.
  • Revision ID: wang@ubuntu-20061029134132-3d7f4216f20c4aef
Replace python's difflib by patiencediff because the worst case 
performance is cubic for difflib and people commiting large data 
files are often hurt by this. The worst case performance of patience is 
quadratic. Fix bug 65714.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 by Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
#   Authors: Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
142
142
        self.assertEqual(False,
143
143
                         symbol_versioning.deprecated_passed(
144
144
                            symbol_versioning.DEPRECATED_PARAMETER))
 
145
 
 
146
    def test_deprecation_string(self):
 
147
        """We can get a deprecation string for a method or function."""
 
148
        self.assertEqual('bzrlib.tests.test_symbol_versioning.'
 
149
            'TestDeprecationWarnings.test_deprecation_string was deprecated in '
 
150
            'version 0.11.',
 
151
            symbol_versioning.deprecation_string(
 
152
            self.test_deprecation_string, symbol_versioning.zero_eleven))
 
153
        self.assertEqual('bzrlib.symbol_versioning.deprecated_function was '
 
154
            'deprecated in version 0.11.',
 
155
            symbol_versioning.deprecation_string(
 
156
                symbol_versioning.deprecated_function,
 
157
                symbol_versioning.zero_eleven))