| 2132 | assert dlv.annotations == None |
| 2133 | |
| 2134 | class ModifiedValue: |
| 2135 | def __init__(self, failed, undeliverable, annotations): |
| 2136 | self.failed = failed |
| 2137 | self.undeliverable = undeliverable |
| 2138 | self.annotations = annotations |
| 2139 | |
| 2140 | def apply(self, dlv): |
| 2141 | dlv.failed = self.failed |
| 2142 | dlv.undeliverable = self.undeliverable |
| 2143 | dlv.annotations = self.annotations |
| 2144 | |
| 2145 | def check(self, dlv): |
| 2146 | assert dlv.data == None, dlv.data |
| 2147 | assert dlv.section_number == 0 |
| 2148 | assert dlv.section_offset == 0 |
| 2149 | assert dlv.condition == None |
| 2150 | assert dlv.failed == self.failed |
| 2151 | assert dlv.undeliverable == self.undeliverable |
| 2152 | assert dlv.annotations == self.annotations, (dlv.annotations, self.annotations) |
| 2153 | |
| 2154 | class CustomValue: |
| 2155 | def __init__(self, data): |