def test_should_return_app_names_with_dailyreport_config(self):
     splunk_home = 'test_splunk'
     expected_item = ['%s/etc/apps/app1/local/dailyreport.conf' % splunk_home,
                      '%s/etc/apps/app3/local/dailyreport.conf' % splunk_home,
                      '%s/etc/apps/app5/local/dailyreport.conf' % splunk_home]
     dr = DailyReport(splunk_home=splunk_home)
     apps_with_config = dr.get_apps()
     self.assertEquals(expected_item, apps_with_config)
 def test_should_return_empty_list_on_wrong_splunk_home_path(self):
     expected_list = []
     dr = DailyReport()
     apps_with_config = dr.get_apps()
     self.assertEquals(expected_list, apps_with_config)