def testChartSeries(self): test_key = self._AddSampleData() rows = debug_alert._FetchRowsAroundRev(test_key, 310, 5, 5) # The indexes used in the chart series should match those in the lookup. self.assertEqual([(0, 60.65), (1, 55.61), (2, 61.88), (3, 61.51), (4, 59.58), (5, 71.79), (6, 71.97), (7, 71.63), (8, 67.16), (9, 70.91)], debug_alert._ChartSeries(rows))
def testChartSeries(self): test_key = self._AddSampleData() rows = debug_alert._FetchRowsAroundRev(test_key.get(), 310, 5, 5) # The indexes used in the chart series should match those in the lookup. self.assertEqual( [(0, 55.61), (1, 61.88), (2, 61.51), (3, 59.58), (4, 71.79), (5, 71.97), (6, 71.63), (7, 67.16), (8, 70.91), (9, 73.4)], debug_alert._ChartSeries(rows))