'container_convergence returns the percentage of
\'create-container\' operations that completed within the
specified time limit.'

def test_container_convergence_calculates_result(self):

    results = [{'metric': {'type': 'wallclock'}, 'operation': {'type': 'create-container'}, 'value': 4}, {'metric': {'type': 'wallclock'}, 'operation': {'type': 'create-container'}, 'value': 2}, {'metric': {'type': 'wallclock'}, 'operation': {'type': 'create-container'}, 'value': 5}, {'metric': {'type': 'wallclock'}, 'operation': {'type': 'create-container'}, 'value': 9}]
    convergence_results = container_convergence(results, 5)
    self.assertEqual(convergence_results, 0.75)
