def testPlotDailyTotals(self): """ Test the plot_daily_totals function by seeing if the plot was created (i.e., the corresponding .png image file exists) """ plot_daily_totals() plotPath = os.getcwd() + '\daily_totals.png' self.assertTrue(os.path.exists(plotPath))
def testDataPresent(self): #1 result=plot_daily_totals() expected_explanation='Daily totals were plotted.' self.assertEqual(result, expected_explanation)
def test_plot_daily_totals(self): try: plot_daily_totals() except: self.fail('plot_daily_totals raised an exception!')
def test_plot_daily_totals(self): result = plot_daily_totals() self.assertEqual(None, result)