def test_get_bz_params(self): tool = TrackedBadSeverity() if not tool.has_enough_data(): # we've non-following versions in product-details # so cheat on versions. tool.versions = {"central": 1, "beta": 2, "release": 3} tool.status_release = utils.get_flag( tool.versions["release"], "status", "release" ) p = tool.get_bz_params(None) assert p["f1"] == "OP" assert "cf_tracking_firefox" in p["f3"] assert "enhancement" in p["bug_severity"]
def test_ignore_date(self): self.assertTrue(TrackedBadSeverity().ignore_date())
def test_get_bz_params(self): p = TrackedBadSeverity().get_bz_params(None) assert p['f1'] == 'OP' assert 'cf_tracking_firefox' in p['f3'] assert 'enhancement' in p['bug_severity']
def test_subject(self): assert 'Bug tracked' in TrackedBadSeverity().subject()
def test_template(self): assert TrackedBadSeverity().template() == 'tracked-bad-severity.html'
def test_name(self): assert TrackedBadSeverity().name() == 'tracked_bad_severity'
def test_description(self): assert 'Bug tracked' in TrackedBadSeverity().description()
def test_template(self): assert TrackedBadSeverity().template() == "tracked_bad_severity.html"