def test_draw_pcoa_graph(self): """draw_pcoa_graph: draws the matplotlib figure""" filename1 = '/tmp/PC1_vs_PC2_plot.png' filename2 = '/tmp/PC1vsPC2plot.eps.gz' self._paths_to_clean_up = [filename1, filename2] obs1, obs2 = draw_pcoa_graph(self.plot_label, self.dir_path, self.data_file_link, self.coord_1, self.coord_2, None, None, None, None, self.data, self.prefs, self.groups, self.colors, self.background_color, self.label_color, data_colors, self.data_color_order, generate_eps=True) self.assertEqual(obs1, expsrcmap2 + expimgmap2) self.assertEqual(obs2, expeps2) self.assertTrue( exists(filename1), 'The png file was not created in \ the appropriate location') self.assertTrue( exists(filename2), 'The eps file was not created in \ the appropriate location')
def test_draw_pcoa_graph(self): """draw_pcoa_graph: draws the matplotlib figure""" filename1 = '/tmp/PC1_vs_PC2_plot.png' filename2 = '/tmp/PC1vsPC2plot.eps.gz' self._paths_to_clean_up = [filename1, filename2] obs1, obs2 = draw_pcoa_graph(self.plot_label, self.dir_path, self.data_file_link, self.coord_1, self.coord_2, None, None, None, None, self.data, self.prefs, self.groups, self.colors, self.background_color, self.label_color, data_colors, self.data_color_order, generate_eps=True) self.assertEqual(obs1, expsrcmap2 + expimgmap2) self.assertEqual(obs2, expeps2) self.assertTrue(exists(filename1), 'The png file was not created in \ the appropriate location') self.assertTrue(exists(filename2), 'The eps file was not created in \ the appropriate location')