Check the net output is expected expects is a list of bools.
(self, net, expects)
| 67 | self.assertEqual(output, expect) |
| 68 | |
| 69 | def CheckNetAllOutput(self, net, expects): |
| 70 | """ |
| 71 | Check the net output is expected |
| 72 | expects is a list of bools. |
| 73 | """ |
| 74 | self.assertEqual(len(net.Proto().external_output), len(expects)) |
| 75 | for i in range(len(expects)): |
| 76 | output = workspace.FetchBlob( |
| 77 | net.Proto().external_output[i]) |
| 78 | self.assertEqual(output, expects[i]) |
| 79 | |
| 80 | def BuildAndRunPlan(self, step): |
| 81 | plan = core.Plan("test") |
no test coverage detected