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

  • Committer: Lukáš Lalinský
  • Date: 2007-11-27 18:47:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3075.
  • Revision ID: lalinsky@gmail.com-20071127184753-e2m2b5lnb00x7nx2
Generic bug tracker configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        self.assertEqual('http://bugs.com/show_bug.cgi?id=1234',
105
105
                         tracker.get_bug_url('1234'))
106
106
 
 
107
    def test_generic_registered(self):
 
108
        branch = self.make_branch('some_branch')
 
109
        config = branch.get_config()
 
110
        config.set_user_option('bugtracker_foo_url', 'http://bugs.com/{id}/view.html')
 
111
        tracker = bugtracker.tracker_registry.get_tracker('foo', branch)
 
112
        self.assertEqual('http://bugs.com/1234/view.html',
 
113
                         tracker.get_bug_url('1234'))
 
114
 
 
115
 
107
116
 
108
117
class TestUniqueIntegerBugTracker(TestCaseWithMemoryTransport):
109
118