method: test.rest.RestReporter.summary

*Not documented*
    def summary(self):

origin: AbstractReporter

where:

function source:

def summary(self):
    def gather(dic):
        total = 0
        for key, val in dic.iteritems():
            total += val
        return total
        
    def create_str(name, count):
        if count:
            return ", %d %s" % (count, name)
        return ""

    total_passed = gather(self.passed)
    total_failed = gather(self.failed)
    total_skipped = gather(self.skipped)
    total = total_passed + total_failed + total_skipped
    skipped_str = create_str("skipped", total_skipped)
    failed_str = create_str("failed", total_failed)
    self.print_summary(total, skipped_str, failed_str)