58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | |
def report_received_item_outcome(self): |
-> item = self.getexample("pass") |
outcomes = self.prepare_outcomes() |
|
def boxfun(config, item, outcomes): |
hosts = [HostInfo("localhost")] |
r = self.reporter(config, hosts) |
ch = DummyChannel(hosts[0]) |
for outcome in outcomes: |
r.report(repevent.ReceivedItemOutcome(ch, item, outcome)) |
|
cap = py.io.StdCaptureFD() |
boxfun(self.config, item, outcomes) |
out, err = cap.reset() |
assert not err |
return out | |