Tells whether or not this result was a success.
(self)
| 170 | self.collectedDurations.append((str(test), elapsed)) |
| 171 | |
| 172 | def wasSuccessful(self): |
| 173 | """Tells whether or not this result was a success.""" |
| 174 | # The hasattr check is for test_result's OldResult test. That |
| 175 | # way this method works on objects that lack the attribute. |
| 176 | # (where would such result instances come from? old stored pickles?) |
| 177 | return ((len(self.failures) == len(self.errors) == 0) and |
| 178 | (not hasattr(self, 'unexpectedSuccesses') or |
| 179 | len(self.unexpectedSuccesses) == 0)) |
| 180 | |
| 181 | def stop(self): |
| 182 | """Indicates that the tests should be aborted.""" |
no outgoing calls