Exemple #1
0
 def test_load(self):
     with open("testdata/tsstat_KHUnc3J2d2Vic3FsMi50aWxhay5jYycsKQ==.json",
               "rt") as infile:
         tsstat = TimeseriesStats.load(infile)
     assert tsstat[("com_select", "min")] == 0.000000
Exemple #2
0
 def __autoload_tsstats(self, filename):
     """
     autoload some stores TimeseriesStats from disk
     """
     with open(filename, "rt") as infile:
         return TimeseriesStats.load(infile)
Exemple #3
0
 def test_dump(self):
     with open("testdata/tsstat_testdump.json", "wt") as outfile:
         self.tsstat.dump(outfile)
     with open("testdata/tsstat_testdump.json", "rt") as infile:
         tsstat = TimeseriesStats.load(infile)
     assert self.tsstat == tsstat