def test_make_area_bar_chart(self):
        """make_area_bar_chart should create HTML source and pdfs for area
           and bar charts"""

        # following is a list of files being generated
        filename1 = '/tmp/qiimewebfiles/charts/area_chart.png'
        filename2 = '/tmp/qiimewebfiles/charts/area_chart_legend.pdf'
        filename3 = '/tmp/qiimewebfiles/charts/area_chart.pdf'
        filename4 = '/tmp/qiimewebfiles/charts/bar_chart.png'
        filename5 = '/tmp/qiimewebfiles/charts/bar_chart_legend.pdf'
        filename6 = '/tmp/qiimewebfiles/charts/bar_chart.pdf'

        #test area chart
        obs1,obs2,obs3,obs4=make_area_bar_chart(self.sample_ids,\
                                      self.area_fracs,\
                                      self.taxa,self.dir_path,1,self.prefs,\
                                      self.color_prefs,"black","white","area",\
                                      self.generate_image_type,self.plot_width,\
                                      self.plot_height,self.bar_width,\
                                      self.dpi,0,'categorical',False,False,\
                                      "area_chart")

        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')
        self.assertTrue(
            exists(filename3), 'The pdf file was not created in \
the appropriate location')

        #test bar chart
        obs1,obs2,obs3,obs4=make_area_bar_chart(self.sample_ids,\
                                      self.area_fracs,\
                                      self.taxa,self.dir_path,1,self.prefs,\
                                      self.color_prefs,"black","white","bar",\
                                      self.generate_image_type,self.plot_width,\
                                      self.plot_height,self.bar_width,self.dpi,\
                                      0,'categorical',False,False,"bar_chart",\
                                      self.props)

        self.assertTrue(
            exists(filename4), 'The png file was not created in \
the appropriate location')
        self.assertTrue(
            exists(filename5), 'The eps file was not created in \
the appropriate location')
        self.assertTrue(
            exists(filename6), 'The pdf file was not created in \
the appropriate location')
        self._paths_to_clean_up = ["/tmp/qiimewebfiles/charts/"+f \
                                  for f in listdir("/tmp/qiimewebfiles/charts")]
    def test_make_area_bar_chart(self):
        """make_area_bar_chart should create HTML source and pdfs for area
           and bar charts"""

        # following is a list of files being generated
        filename1='/tmp/qiimewebfiles/charts/area_chart.png'
        filename2='/tmp/qiimewebfiles/charts/area_chart_legend.pdf'
        filename3='/tmp/qiimewebfiles/charts/area_chart.pdf'
        filename4='/tmp/qiimewebfiles/charts/bar_chart.png'
        filename5='/tmp/qiimewebfiles/charts/bar_chart_legend.pdf'
        filename6='/tmp/qiimewebfiles/charts/bar_chart.pdf'
 
        #test area chart
        obs1,obs2,obs3,obs4=make_area_bar_chart(self.sample_ids,\
                                      self.area_fracs,\
                                      self.taxa,self.dir_path,1,self.prefs,\
                                      self.color_prefs,"black","white","area",\
                                      self.generate_image_type,self.plot_width,\
                                      self.plot_height,self.bar_width,\
                                      self.dpi,0,'categorical',False,False,\
                                      "area_chart")

        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')
        self.assertTrue(exists(filename3),'The pdf file was not created in \
the appropriate location')

        #test bar chart
        obs1,obs2,obs3,obs4=make_area_bar_chart(self.sample_ids,\
                                      self.area_fracs,\
                                      self.taxa,self.dir_path,1,self.prefs,\
                                      self.color_prefs,"black","white","bar",\
                                      self.generate_image_type,self.plot_width,\
                                      self.plot_height,self.bar_width,self.dpi,\
                                      0,'categorical',False,False,"bar_chart",\
                                      self.props)
                                  
        self.assertTrue(exists(filename4),'The png file was not created in \
the appropriate location')
        self.assertTrue(exists(filename5),'The eps file was not created in \
the appropriate location')
        self.assertTrue(exists(filename6),'The pdf file was not created in \
the appropriate location')
        self._paths_to_clean_up = ["/tmp/qiimewebfiles/charts/"+f \
                                  for f in listdir("/tmp/qiimewebfiles/charts")]