def testQueryFetch(self): mystart = timestamp - nrOfMetrics (_, _, _, values) = whisbert.fetch(tmp_path + "/a/*/*/1", datetime.datetime.fromtimestamp(mystart), datetime.datetime.fromtimestamp(timestamp)) for i in range(len(values)): self.assertEquals(values[i], i+i) # we got the summed results of the two metrices
def testFetch(self): mystart = timestamp - nrOfMetrics (_, _, _, values) = whisbert.fetch(metric1, datetime.datetime.fromtimestamp(mystart), datetime.datetime.fromtimestamp(timestamp)) for i in range(len(values)): self.assertEquals(values[i], i)