(self)
| 619 | self.assertTrue(n.has_null_identifier()) |
| 620 | |
| 621 | def test_where_clause(self): |
| 622 | cf = ua.ContentFilter() |
| 623 | |
| 624 | el = ua.ContentFilterElement() |
| 625 | |
| 626 | op = ua.SimpleAttributeOperand() |
| 627 | op.BrowsePath.append(ua.QualifiedName("property", 2)) |
| 628 | el.FilterOperands.append(op) |
| 629 | |
| 630 | for i in range(10): |
| 631 | op = ua.LiteralOperand() |
| 632 | op.Value = ua.Variant(i) |
| 633 | el.FilterOperands.append(op) |
| 634 | |
| 635 | el.FilterOperator = ua.FilterOperator.InList |
| 636 | cf.Elements.append(el) |
| 637 | |
| 638 | wce = WhereClauseEvaluator(logging.getLogger(__name__), None, cf) |
| 639 | |
| 640 | ev = BaseEvent() |
| 641 | ev._freeze = False |
| 642 | ev.property = 3 |
| 643 | |
| 644 | self.assertTrue(wce.eval(ev)) |
| 645 | |
| 646 | |
| 647 | class TestMaskEnum(unittest.TestCase): |
nothing calls this directly
no test coverage detected