MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_error_expr

Method test_error_expr

tests/bundle/test_config_item.py:132–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130 self.assertEqual(flag, expected)
131
132 def test_error_expr(self):
133 with self.assertRaisesRegex(RuntimeError, r"1\+\[\]"):
134 ConfigExpression(id="", config="$1+[]").evaluate()
135
136
137if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

ConfigExpressionClass · 0.90
evaluateMethod · 0.45

Tested by

no test coverage detected