()
| 112 | |
| 113 | |
| 114 | def test_option_parent(): |
| 115 | parent_opt = Option("A_FAKE_OPTION", "default-value", mutable=True) |
| 116 | child_opt = Option("A_FAKE_OPTION", parent=parent_opt) |
| 117 | assert child_opt.mutable |
| 118 | assert child_opt.current == "default-value" |
| 119 | |
| 120 | parent_opt.current = "new-value" |
| 121 | assert child_opt.current == "new-value" |
| 122 | |
| 123 | |
| 124 | def test_option_parent_child_must_be_mutable(): |