예제 #1
0
 def test_plotting_empty(self):
     """
     Testing the fit function
     and the image data when no data is available
     or when weather data are random
     and thus not among the allowed discrete values
     """
     plot = ScatterPlot(1)
     img_data = plot.get_image_data()
     assert not(plot.get_fit_function())
     plot.set_data([random.random(), random.random()], [random.random(), random.random()])
     assert not(plot.get_fit_function())
     assert img_data
예제 #2
0
 def test_plotting_empty(self):
     """
     Testing the fit function
     and the image data when no data is available
     or when weather data are random
     and thus not among the allowed discrete values
     """
     plot = ScatterPlot(1)
     img_data = plot.get_image_data()
     assert not (plot.get_fit_function())
     plot.set_data([random.random(), random.random()],
                   [random.random(), random.random()])
     assert not (plot.get_fit_function())
     assert img_data
예제 #3
0
 def test_plotting(self):
     """
     Testing the fit function
     and the image data when data are available
     """
     plot = ScatterPlot(1)
     plot.set_data([0, 1], [0, 1])
     img_data = plot.get_image_data()
     assert plot.get_fit_function()
     assert img_data
예제 #4
0
 def test_plotting(self):
     """
     Testing the fit function
     and the image data when data are available
     """
     plot = ScatterPlot(1)
     plot.set_data([0, 1], [0, 1])
     img_data = plot.get_image_data()
     assert plot.get_fit_function()
     assert img_data