[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-61-g47d5a62
Sandro Tosi
morph at debian.org
Tue Oct 4 21:14:16 UTC 2011
The following commit has been merged in the master branch:
commit 47d5a62059bed4d0ba3f5a035c46169e7a2fbc3b
Author: Sandro Tosi <morph at debian.org>
Date: Tue Oct 4 23:13:58 2011 +0200
add test for #643785
diff --git a/test/test_bugreport.py b/test/test_bugreport.py
index c3d2e62..71de583 100644
--- a/test/test_bugreport.py
+++ b/test/test_bugreport.py
@@ -1,6 +1,7 @@
import unittest2
from reportbug import utils
+from reportbug import debbugs
from reportbug.bugreport import bugreport
from nose.plugins.attrib import attr
import debianbts
@@ -19,6 +20,13 @@ class TestBugreport(unittest2.TestCase):
self.assertIn(self.package, self.text)
self.assertIn(utils.NEWBIELINE, self.text)
+ # verify that for special packages, we don't add the report template
+ def test_bts643785(self):
+ for package in debbugs.SYSTEMS['debian'].get('specials', {}).keys():
+ self.report = bugreport(package=package, mode=utils.MODE_NOVICE)
+ self.text = self.report.__unicode__()
+ self.assertNotIn(utils.NEWBIELINE, self.text)
+
@attr('network') #marking the test as using network
def test_followup(self):
self.body = 'test'
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list