

def test_result(self):
    sla1 = outliers.Outliers({
        'max': 1,
    })
    sla2 = outliers.Outliers({
        'max': 2,
    })
    iteration_durations = [3.1, 4.2, 3.6, 4.5, 2.8, 3.3, 4.1, 3.8, 4.3, 2.9, 10.2, 11.2, 3.4]
    for sla in [sla1, sla2]:
        for d in iteration_durations:
            sla.add_iteration({
                'duration': d,
            })
    self.assertFalse(sla1.result()['success'])
    sla2.assertTrue(sla2.result()['success'])
    self.assertEqual('Failed', sla1.status())
    self.assertEqual('Passed', sla2.status())

dataset/ETHPy150Open openstack/rally/tests/unit/plugins/common/sla/test_ouliers.py OutliersTestCase.test_result/VarMisuse@120/165 `self`->`sla2`