'Tells whether or not this result was a success.'

def wasSuccessful(self):

    return ((len(self.failures) == len(self.errors) == 0) and ((not hasattr(self, 'unexpectedSuccesses')) or (len(self.unexpectedSuccesses) == 0)))
