~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hooks.py

  • Committer: Robert Collins
  • Date: 2009-03-12 06:24:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4133.
  • Revision ID: robertc@robertcollins.net-20090312062439-gigl7rnor6t2cbcz
Migrate existing hooks over to the new HookPoint infrastructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        hooks.create_hook(hook2)
71
71
        self.assertEqualDiff(
72
72
            "MyHooks\n"
73
 
            "=======\n"
 
73
            "-------\n"
74
74
            "\n"
75
75
            "legacy\n"
76
 
            "------\n"
 
76
            "~~~~~~\n"
77
77
            "\n"
78
78
            "An old-style hook. For documentation see the __init__ method of 'MyHooks'\n"
79
79
            "\n"
80
80
            "post_tip_change\n"
81
 
            "---------------\n"
 
81
            "~~~~~~~~~~~~~~~\n"
82
82
            "\n"
83
83
            "Introduced in: 1.4\n"
84
84
            "Deprecated in: Not deprecated\n"
87
87
            "ChangeBranchTipParams object.\n"
88
88
            "\n"
89
89
            "pre_tip_change\n"
90
 
            "--------------\n"
 
90
            "~~~~~~~~~~~~~~\n"
91
91
            "\n"
92
92
            "Introduced in: 1.6\n"
93
93
            "Deprecated in: Not deprecated\n"
158
158
            " a bzrlib.branch.PostChangeBranchTipParams object")
159
159
        hook = HookPoint("post_tip_change", doc, (0, 15), None)
160
160
        self.assertEqual("post_tip_change\n"
161
 
            "---------------\n"
 
161
            "~~~~~~~~~~~~~~~\n"
162
162
            "\n"
163
163
            "Introduced in: 0.15\n"
164
164
            "Deprecated in: Not deprecated\n"