Exemple #1
0
 def test_with_extra_numbers(self):
     """
     buglinkify should only linkify the bug.
     """
     name = 'Test this 12345 string with Bug 12345 and 12345'
     eq_(buglinkify(name),
         'Test this 12345 string with <a href="%s12345">Bug 12345</a> and 12345' %
         self.bugzilla_url_prefix)
Exemple #2
0
 def test_with_bug_ucase(self):
     """
     buglinkify should linkify a capitalized bug in a string.
     """
     name = 'Test this string with Bug 12345'
     eq_(buglinkify(name),
         'Test this string with <a href="%s12345">Bug 12345</a>' %
         self.bugzilla_url_prefix)
Exemple #3
0
 def test_with_bug_lcase(self):
     """
     buglinkify should linkify a lowercase bug in a string.
     """
     name = 'Test this string with bug 12345'
     eq_(buglinkify(name),
         'Test this string with <a href="%s12345">bug 12345</a>' %
         self.bugzilla_url_prefix)
 def test_with_extra_numbers(self):
     """
     buglinkify should only linkify the bug.
     """
     name = 'Test this 12345 string with Bug 12345 and 12345'
     eq_(
         buglinkify(name),
         'Test this 12345 string with <a href="%s12345">Bug 12345</a> and 12345'
         % self.bugzilla_url_prefix)
 def test_with_bug_ucase(self):
     """
     buglinkify should linkify a capitalized bug in a string.
     """
     name = 'Test this string with Bug 12345'
     eq_(
         buglinkify(name),
         'Test this string with <a href="%s12345">Bug 12345</a>' %
         self.bugzilla_url_prefix)
 def test_with_bug_lcase(self):
     """
     buglinkify should linkify a lowercase bug in a string.
     """
     name = 'Test this string with bug 12345'
     eq_(
         buglinkify(name),
         'Test this string with <a href="%s12345">bug 12345</a>' %
         self.bugzilla_url_prefix)
Exemple #7
0
 def test_without_bug(self):
     """
     buglinkify should leave string intact without a bug.
     """
     name = 'Test this string with boog 12345'
     eq_(buglinkify(name), name)
 def test_without_bug(self):
     """
     buglinkify should leave string intact without a bug.
     """
     name = 'Test this string with boog 12345'
     eq_(buglinkify(name), name)