def test_predicate(self): rc = DotDict() pc = DotDict() pc.classifications = DotDict() processor = None support_rule = SupportClassificationRule() self.assertTrue(support_rule.predicate(rc, pc, processor)) pc.classifications.support = DotDict() self.assertTrue(support_rule.predicate(rc, pc, processor))
def test_predicate(self): rc = DotDict() rd = {} pc = DotDict() pc.classifications = DotDict() processor = None support_rule = SupportClassificationRule() ok_(support_rule.predicate(rc, rd, pc, processor)) pc.classifications.support = DotDict() ok_(support_rule.predicate(rc, rd, pc, processor))