def test_plotAll(self): plotter = GPlotter(320, 200, 2, 2) dataPoints = [{"x": 1, "z": 1}, {"x": 1, "z": 1}] allPlots = plotter.plotAll(dataPoints) self.assertEqual(2, len(allPlots)) self.assertTrue(allPlots[0][0] < 320 and allPlots[0][0] > 0, "Plotted x values must be between the range -160:160 " + str(allPlots))
def test_plotAll(self): plotter = GPlotter(320, 200, 2, 2) dataPoints = [{"x": 1, "z": 1}, {"x": 1, "z": 1}] allPlots = plotter.plotAll(dataPoints) self.assertEqual(2, len(allPlots)) self.assertTrue( allPlots[0][0] < 320 and allPlots[0][0] > 0, "Plotted x values must be between the range -160:160 " + str(allPlots))