def test_should_form_action_set(self, cfg):
    cl_1 = Classifier(action=0, cfg=cfg)
    cl_2 = Classifier(action=0, cfg=cfg)
    cl_3 = Classifier(action=1, cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    action = 0
    action_set = ClassifiersList.form_action_set(population, action)
    assert (len(action_set) == 2)
    assert (cl_1 in action_set)
    assert (cl_2 in action_set)
def test_should_form_action_set(self, cfg):
    cl_1 = Classifier(action=0, cfg=cfg)
    cl_2 = Classifier(action=0, cfg=cfg)
    cl_3 = Classifier(action=1, cfg=cfg)
    population = ClassifiersList(*[cl_1, cl_2, cl_3])
    action = 0
    action_set = ClassifiersList.form_action_set(population, action)
    assert (len(action_set) == 2)
    assert (cl_1 in action_set)
    assert (cl_2 in action_set)