Test modifier that enforces a 'runOn' on a test case.
(self, scenario_def, method)
| 143 | return False |
| 144 | |
| 145 | def ensure_run_on(self, scenario_def, method): |
| 146 | """Test modifier that enforces a 'runOn' on a test case.""" |
| 147 | |
| 148 | def predicate(): |
| 149 | return self.should_run_on(scenario_def) |
| 150 | |
| 151 | return client_context._require(predicate, "runOn not satisfied", method) |
| 152 | |
| 153 | def tests(self, scenario_def): |
| 154 | """Allow CMAP spec test to override the location of test.""" |