def test_wallclock_for_operation_calculates_result(self):
        operation = 'test-operation'
        results = [
            {
                'metric': {
                    'type': 'wallclock'
                },
                'operation': {
                    'type': operation
                },
                'value': 11
            },
            {
                'metric': {
                    'type': 'wallclock'
                },
                'operation': {
                    'type': operation
                },
                'value': 14
            },
        ]
        wallclock_result = wallclock_for_operation(results, operation)
        self.assertEqual(wallclock_result, 12.5)
Load configuration defaults from defaults.py in this package.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_metrics_parser.py/MetricsParserTests.test_wallclock_for_operation_calculates_result--crossover with--dataset/ETHPy150Open jessemyers/cheddar/cheddar/configure.py/_configure_from_defaults