def test_exists_no_case(self): rule_def = { 'name': 'REFERENCES', } r = rules.HeaderExists(rule_def, {}) self.assertTrue(r.check(self.msg))
def test_no_exists(self): rule_def = { 'name': 'no-such-header', } r = rules.HeaderExists(rule_def, {}) self.assertFalse(r.check(self.msg))
def test_exists(self): rule_def = { 'name': 'references', } r = rules.HeaderExists(rule_def, {}) self.assertTrue(r.check(self.msg))