def test_number_stat_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_number_stat_push:
        gecko_job_number_stat = GeckoboardService(
            resp_ex.FULL_TIMESERIES_RESP, req_ex.SERVICE_API_KEY,
            conf_ex.GECKO_NUMBER_STAT_CONFIG)
        gecko_job_number_stat.process()
        assert mocked_number_stat_push.called
def test_bar_chart_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_bar_chart_push:
        gecko_job_bar_chart = GeckoboardService(resp_ex.FULL_GROUP_RESP,
                                                req_ex.SERVICE_API_KEY,
                                                conf_ex.GECKO_BAR_CHART_CONFIG)
        gecko_job_bar_chart.process()
        assert mocked_bar_chart_push.called
def test_line_chart_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_line_chart_push:
        gecko_job_line_chart = GeckoboardService(
            resp_ex.FULL_TIMESERIES_RESP, req_ex.SERVICE_API_KEY,
            conf_ex.GECKO_LINE_CHART_CONFIG)
        gecko_job_line_chart.process()
        assert mocked_line_chart_push.called
def test_number_stat_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_number_stat_push:
        gecko_job_number_stat = GeckoboardService(resp_ex.FULL_TIMESERIES_RESP,
                                                  req_ex.SERVICE_API_KEY,
                                                  conf_ex.GECKO_NUMBER_STAT_CONFIG)
        gecko_job_number_stat.process()
        assert mocked_number_stat_push.called
def test_bar_chart_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_bar_chart_push:
        gecko_job_bar_chart = GeckoboardService(resp_ex.FULL_GROUP_RESP,
                                                req_ex.SERVICE_API_KEY,
                                                conf_ex.GECKO_BAR_CHART_CONFIG)
        gecko_job_bar_chart.process()
        assert mocked_bar_chart_push.called
def test_line_chart_process_calls_push():
    with patch.object(GeckoboardService, '_push') as mocked_line_chart_push:
        gecko_job_line_chart = GeckoboardService(resp_ex.FULL_TIMESERIES_RESP,
                                                 req_ex.SERVICE_API_KEY,
                                                 conf_ex.GECKO_LINE_CHART_CONFIG)
        gecko_job_line_chart.process()
        assert mocked_line_chart_push.called