def test_plot_stream(self): """Verify plot_stream function returns a StringIO StringIO instance""" self.assertTrue( isinstance( model.plot_stream(self.sample_data, title="Plot Title", width=5, height=5), StringIO.StringIO))
def test_gen_thumbnail(self): """Verify gen_thumbnail function returns a wx Bitmap instance""" app = wx.PySimpleApp() img_stream = model.plot_stream(self.sample_data, "Plot Title", width=14, height=11) plot_bmp = model.gen_thumbnail(img_stream, self.sample_data_file) self.assertTrue(isinstance(plot_bmp, wx.Bitmap))
def test_plot_stream(self): """Verify plot_stream function returns a StringIO StringIO instance""" self.assertTrue(isinstance(model.plot_stream(self.sample_data, title="Plot Title", width=5, height=5), StringIO.StringIO))