def get_received_total_sum(self, condition, sub_name):
     """
     >>> d = get_simple_test_dir() + os.sep + "test_network1"
     >>> info = GetProcessedInformation(ReadReports(d))
     >>> info.get_received_total_sum("normal","singles") == [56,56,0]
     True
     """
     results = []
     r = self.information.get_received(condition, sub_name)
     r = self.get_sum_hosts(r)
     return sum_lists_column(r)
    def get_sum_hosts(r):
        """
        When key is "Sent": this list is returned
        index - host, [Sum of single + aggr, number of single, number of aggr]
        [[9, 9, 0], [9, 9, 0], [1, 1, 0], [9, 9, 0], [17, 17, 0], [9, 9, 0], [1, 1, 0], [1, 1, 0]]

        >>> d = get_simple_test_dir() + os.sep + "test_network1"
        >>> info = GetInformation(ReadReports(d), use_cache=False)
        >>> r = info.get_sent("normal","singles")
        >>> GetProcessedInformation.get_sum_hosts(r)[0] == [9,9,0]
        True
        """
        results = []
        for host, value in r.items():
            results.append(sum_lists_column(value))
        return results