()
| 241 | |
| 242 | |
| 243 | def test_recursive(): |
| 244 | pattern = some.dict.containing( |
| 245 | { |
| 246 | "dict": some.dict.containing({"int": some.int.in_range(100, 200)}), |
| 247 | "list": [None, ~some.error, some.number | some.str], |
| 248 | } |
| 249 | ) |
| 250 | |
| 251 | log_repr(pattern) |
| 252 | |
| 253 | assert pattern == { |
| 254 | "list": [None, False, 123], |
| 255 | "bool": True, |
| 256 | "dict": {"int": 123, "str": "abc"}, |
| 257 | } |