def test_save_ave_rarefaction_plots(self):
        """save_ave_rarefaction_plots: this tests the functionality of 
           creating a rarefaction plot based on the average rarefaction 
           values"""

        filename1 = "/tmp/test1SampleID.png"
        self._paths_to_clean_up = [filename1]

        exp = None

        obs = save_ave_rarefaction_plots(
            self.data["xaxis"],
            self.data["yvals"],
            self.data["err"],
            self.xmax,
            self.ymax,
            self.ops,
            self.mapping_category,
            self.imagetype,
            self.resolution,
            self.data_colors,
            self.colors,
            "/tmp/test1",
            self.background_color,
            self.label_color,
            self.metric_name,
        )

        self.assertEqual(obs, exp)
        self.assertTrue(exists(filename1))
    def test_save_ave_rarefaction_plots(self):
        '''save_ave_rarefaction_plots: this tests the functionality of 
           creating a rarefaction plot based on the average rarefaction 
           values'''

        filename1 = '/tmp/test1SampleID.png'
        self._paths_to_clean_up = [filename1]

        exp = None

        obs=save_ave_rarefaction_plots(self.data['xaxis'], \
                    self.data['yvals'],self.data['err'], \
                    self.xmax, self.ymax, self.ops, self.mapping_category, \
                    self.imagetype, self.resolution, self.data_colors, \
                    self.colors, '/tmp/test1',self.background_color, \
                    self.label_color,self.metric_name)

        self.assertEqual(obs, exp)
        self.assertTrue(exists(filename1))
    def test_save_ave_rarefaction_plots(self):
        '''save_ave_rarefaction_plots: this tests the functionality of 
           creating a rarefaction plot based on the average rarefaction 
           values'''
       
        filename1='/tmp/test1SampleID.png'
        self._paths_to_clean_up = [filename1]

        exp=None
        
        obs=save_ave_rarefaction_plots(self.data['xaxis'], \
                    self.data['yvals'],self.data['err'], \
                    self.xmax, self.ymax, self.ops, self.mapping_category, \
                    self.imagetype, self.resolution, self.data_colors, \
                    self.colors, '/tmp/test1',self.background_color, \
                    self.label_color,self.metric_name)
                
        self.assertEqual(obs,exp)
        self.assertTrue(exists(filename1))