def test_make_line_plot(self): """ make_line_plot: creates HTML source for scree plot""" filename1 = join(self.tmp_dir, 'scree_plot.png') filename2 = join(self.tmp_dir, 'scree_plot.eps.gz') self._paths_to_clean_up = [filename1, filename2] obs1, obs2 = make_line_plot(self.tmp_dir, self.tmp_dir, self.background_color, self.label_color, self.xy_coords_scree, self.props_scree, x_len=4.5, y_len=4.5, generate_eps=True) self.assertEqual(obs1, filename_scree % filename1) self.assertEqual(obs2, expdownlink_scree % filename2) self.assertTrue( exists(filename1), 'The png file was not created in the appropiate location') self.assertTrue( exists(filename2), 'The eps file was not created in the appropiate location')
def test_make_line_plot(self): """ make_line_plot: creates HTML source for scree plot""" filename1 = join(self.tmp_dir,'scree_plot.png') filename2 = join(self.tmp_dir,'scree_plot.eps.gz') self._paths_to_clean_up = [filename1,filename2] obs1,obs2=make_line_plot(self.tmp_dir, self.tmp_dir, self.background_color, self.label_color, self.xy_coords_scree, self.props_scree, x_len = 4.5, y_len = 4.5, generate_eps = True) self.assertEqual(obs1,filename_scree % filename1) self.assertEqual(obs2,expdownlink_scree % filename2) self.assertTrue(exists(filename1), 'The png file was not created in the appropiate location') self.assertTrue(exists(filename2), 'The eps file was not created in the appropiate location')