~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_symbol_versioning.py

Introduce BranchFormats - factoring out intialisation of Branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            self.assertEqualDiff(expected_module, deprecated_callable.__module__)
90
90
        finally:
91
91
            symbol_versioning.set_warning_method(old_warning_method)
 
92
    
 
93
    def test_deprecated_passed(self):
 
94
        self.assertEqual(True, symbol_versioning.deprecated_passed(None))
 
95
        self.assertEqual(True, symbol_versioning.deprecated_passed(True))
 
96
        self.assertEqual(True, symbol_versioning.deprecated_passed(False))
 
97
        self.assertEqual(False,
 
98
                         symbol_versioning.deprecated_passed(
 
99
                            symbol_versioning.deprecated_nonce))