'Ensure that non-class-based stateful plugins work'

def test_dogstream_function_plugin(self):

    log_data = ['test.metric.accumulator    1000000000    1    metric_type=counter', 'test.metric.accumulator    1100000000    1    metric_type=counter']
    expected_output = {'dogstream': [('test.metric.accumulator', 1000000000, 1, self.counter), ('test.metric.accumulator', 1100000000, 2, self.counter)]}
    self._write_log(log_data)
    statedog = Dogstreams.init(self.logger, {'dogstreams': '{0}:{1}:parse_function_plugin'.format(self.log_file.name, __name__)})
    actual_output = statedog.check(self.config, move_end=False)
    self.assertEquals(expected_output, actual_output)
